Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Setup the DNS service on Ubuntu 12.04 64 and all apears to be well except that my dhcp clients do not recognize my DNS servers hostname.

When doing a nslookup on one of my Windows clients, I get

Default Server:  UnKnown

Where I would expect the FQDN in the spot where UnKnown is seen. The DNS server know's itself pretty well, but I think only because I have an entry in the /etc/hosts file to resolve. There's so many places to look I don't even know where to begin. Are there any logs I can look at? Something.

Places I've looked at and configured:




@ IN SOA dns-serv1.mydomain.com admin@mydomain.com. (

IN NS dns-serv1.mydomain.com.
2 IN PTR dns-serv1
2 IN PTR mydomain.com



zone "mydomain.com" {
        type master;
        file "/etc/bind/zones/mydomain.com.db";

zone "1.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
share|improve this question
What's the reverse lookup zone's configuration look like? –  Shane Madden Jun 21 '12 at 0:42
@ShaneMadden Edit Updated. –  hydroparadise Jun 21 '12 at 0:55

2 Answers 2

up vote 1 down vote accepted

You need to have a PTR record on your reverse zone definition (rev.1.168.192.in-addr.arpa), something like

2     PTR     dns.domain.com

Also to do a forward lookup you need to configure a NS record on your forward zone definition (domain.com.db)

dns   NS
share|improve this answer

Entries in zone files are considered relative without a trailing dot, so this...

2 IN PTR dns-serv1
2 IN PTR mydomain.com

...really means...

2 IN PTR dns-serv1.1.168.192.in-addr.arpa.
2 IN PTR mydomain.com.1.168.192.in-addr.arpa.

...which doesn't make a whole lot of sense.

What you probably want is:

2 IN PTR dns-serv1.mydomain.com.

I'm a little surprised that Windows isn't showing you the contents of the PTR record anyway, though. What's the zone block for the reverse zone look like in named.conf.local?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.