nslookup "cant find domain name"

Issues related to applications and software problems
Post Reply
altiris
Posts: 334
Joined: 2013/05/31 01:27:50

nslookup "cant find domain name"

Post by altiris » 2014/04/14 01:22:56

I have centos 6.5 with bind dns installed. When I try and do nslookups of my mail domain, which is mail.dataglobe.net, I get "Non-authoritative answer: *** Can't find mail.dataglobe.net: No answer". Which is weird because if I try nslookup dataglobe.net I get back the domainn and the external ip address given to the computer. Additionally, I can not nslookup my hostname which is necc-data, I get "server can't find necc-data: NXDOMAIN". I have these entires in the zone files of the DNS server yet they still do not

I am running DNS chrooted so basically the .conf file is in /var/named/chroot/etc/named.conf and my zone files are in /var/named/chroot/var/named/ Below are my forward and lookup zones in order.
Last edited by altiris on 2014/05/24 23:05:59, edited 1 time in total.

User avatar
vonskippy
Posts: 839
Joined: 2006/12/30 03:00:04
Location: Western Slope Colorado

Re: nslookup "cant find domain name"

Post by vonskippy » 2014/04/14 01:31:11

You don't have a A record for MAIL

Also ALL of your records point to INTERNAL/PRIVATE IP's, so nothing from outside will be able to use them.

Also, unless you have at least a /24 subnet, pubic PTR records must either be setup by your upstream provider, or delegated in their name server to allow you to host those records (this is somewhat moot since once again, you're only using internal IPs).
For the 2.5^15th time :: Better Details = Better Answers

altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Re: nslookup "cant find domain name"

Post by altiris » 2014/04/14 01:33:25

vonskippy wrote:You don't have a A record for MAIL

Also ALL of your records point to INTERNAL/PRIVATE IP's, so nothing from outside will be able to use them.

Also, unless you have at least a /24 subnet, pubic PTR records must either be setup by your upstream provider, or delegated in their name server to allow you to host those records (this is somewhat moot since once again, you're only using internal IPs).
I made an A record for mail originally and it still didnt do anything. I will make an A record for mail below, is that correct or rather than my IP should I put mail.mydomain.com ? I will also change the internal IPs to external IPs in forward zone

mail IN A 192.168.12.137

Alright so I try doing nslookups again after the changes above and I still get the same response. One thing I have noticed is that in my zone files I set www to be an A record but when I nslookup http://www.dataglobe.net it returns "Non-authoritative answer: http://www.dataglobe.net canonical name = http://www.dataglobe.net. which is making me wonder now that it is getting the records from my ISPs DNS servers in which I put www as a CNAME record just for testing purposes.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nslookup "cant find domain name"

Post by TrevorH » 2014/04/14 10:23:10

Try pointing nslookup directly to your nameserver by running, e.g. `nslookup www.dataglobe.net 127.0.0.1` and see if you get different answers. Without the server address specified it will pick up the nameserver address(es) to be used from /etc/resolv.conf and use those. If that doesn't point to your local nameserver then it won't be used.

Also, when you nslookup, you don't include http:// on the query, just the domain name.

The output from nslookup helpfully includes the address of the server it used so that you can tell which one provided the answer. I suspect your output will be using a different server...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: nslookup "cant find domain name"

Post by avij » 2014/04/14 12:05:40

TrevorH wrote:Also, when you nslookup, you don't include http:// on the query, just the domain name.
I believe it was phpBB that helpfully added the http:// in there. This 'useful feature' can be disabled by checking the Do not automatically parse URLs checkbox when writing a message.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nslookup "cant find domain name"

Post by TrevorH » 2014/04/14 12:30:20

It didn't automatically parse and change my version though.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Re: nslookup "cant find domain name"

Post by altiris » 2014/04/17 14:34:38

TrevorH wrote:Try pointing nslookup directly to your nameserver by running, e.g. `nslookup http://www.dataglobe.net 127.0.0.1` and see if you get different answers. Without the server address specified it will pick up the nameserver address(es) to be used from /etc/resolv.conf and use those. If that doesn't point to your local nameserver then it won't be used.

Also, when you nslookup, you don't include http:// on the query, just the domain name.

The output from nslookup helpfully includes the address of the server it used so that you can tell which one provided the answer. I suspect your output will be using a different server...
I did not add http:// it was added automatically. I did a cat of my resolv.conf and it has in it nameserver 127.0.0.1
Here is the output of the command you wanted me to try.
Last edited by altiris on 2014/05/24 23:06:21, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: nslookup "cant find domain name"

Post by TrevorH » 2014/04/17 19:52:55

Notice how that output does not include "Non-authoritative answer" which means that your nameserver on 127.0.0.1 is authoritative for the domain. When you did this before it queried some other nameserver that was not the owner of your zone so it was not authoritative.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

altiris
Posts: 334
Joined: 2013/05/31 01:27:50

Re: nslookup "cant find domain name"

Post by altiris » 2014/04/18 00:14:40

TrevorH wrote:Notice how that output does not include "Non-authoritative answer" which means that your nameserver on 127.0.0.1 is authoritative for the domain. When you did this before it queried some other nameserver that was not the owner of your zone so it was not authoritative.
Hmmm, then it must be my ISPs domain being used infront of or instead of mine, yes? I will try and troubleshoot more and edit settings on the ISPs DNS and report back. Thanks for helping me, I appreciate it.

Post Reply