cannot resolve DNS server's own domain name

Posted by sims on Server Fault See other posts from Server Fault or by sims
Published on 2010-03-31T14:52:48Z Indexed on 2010/03/31 15:03 UTC
Read the original article Hit count: 364

Filed under:
|
|
|
|

I have a DNS server (mega.dude - 123.123.123.123) running bind 9.4. When I:

dig mega.dude

I get no answer section.

I have

nameserver 123.123.123.123

in /etc/resolv.conf

Here is my zone file:

$TTL 1W
@                       IN SOA          mega.dude. names.mega.dude. (
                                        2009081502      ; serial
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                        NS        ns1
                        NS        ns2
                        MX 10     mail.mega.dude.

                        A 123.123.123.123
@                       A 123.123.123.123
ns1                     A 123.123.123.123
ns2                     A 123.123.123.123
www                     CNAME @
mail                    A 123.123.123.123

It didn't used to look like this. I read that it's evil to have an mx record pointing to a CNAME. So I changed that. Then I thought maybe that was also the case for NS. So I changed those too. Still no good. The ports are open. I can't figure it out. Oh by the way, all the other zones return fine. But not the servers own domain. So I know I'm doing something stupid.

Thanks for your help all!

© Server Fault or respective owner

Related posts about bind

Related posts about linux