We help IT Professionals succeed at work.
Get Started

nslookup looks for www.domainx.com.domainy.com and returns SERVFAIL

DrDamnit
DrDamnit asked
on
890 Views
Last Modified: 2012-05-11
On the DNS server, I run nslookup, then do server localhost to make sure it queries itself. Asking it ot find google.com works fine. Asking it to find domainX.net or DomainY.com (zones hosted locally on the internet webserver) returns this error:

www.domainXnet
;; Got SERVFAIL reply from 127.0.0.1, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server:         localhost
Address:        127.0.0.1#53

** server can't find www.domainX.net.domainY.com: SERVFAIL

I guess it thinks those zones are part of the local domain, which means something is wrong in my configs. It should think that those are stand alone domains.

Here's named.conf.local
 
;named.conf.local

zone "domainX.net" {
        type master;
        file "zones/domainX.net.zone";
};

zone "domainY.com" {
        type master;
        file "zones/domainY.com.zone";
};

Open in new window


Here is the zone file for domainX.net:
 
$TTL 3D
@       IN      SOA     domainX.net. root.domainX.net. (
                        199609206       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
                NS      ns1.domaindiscover.com.
                NS      ns2.domaindiscover.com.
                MX      10 domainX.net.  ; Primary Mail Exchanger
                TXT     "My Corporation 2"

localhost       A       127.0.0.1

domainX.net.     A  192.168.13.3
www             CNAME   domainX.net.
ftp             CNAME   domainX.net.
mail            CNAME   domainX.net.

Open in new window


Here is the zone file for domainY.com:
 
$TTL 3D
@       IN      SOA     domainY.com. kgoodwin.domainY.com. (
                        199609206       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
                NS      ns1.domaindiscover.com.
                NS      ns2.domaindiscover.com.
                MX      10 domainY.com.  ; Primary Mail Exchanger
                TXT     "My Corporation 1"

localhost       A       127.0.0.1

domainY.com.     A  192.168.13.3
www             CNAME   domainY.com.
ftp             CNAME   domainY.com.
mail            CNAME   domainY.com.

Open in new window


What's wrong?
;named.conf.local

zone "domainX.net" {
        type master;
        file "zones/domainX.net.zone";
};

zone "domainY.com" {
        type master;
        file "zones/domainY.com.zone";
};

Open in new window

Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Commented:
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE