Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Host not found: 3(NXDOMAIN)

Posted on 2014-07-24
Medium Priority
Last Modified: 2014-07-31
I keep having trouble with this one. I have implemented DNS with DHCP update on my Linux Slackware distro 14.1, bind version 9.9.3. I did have this working once, I was able to resolve dhcp clients:
$ host hplaptop
hplaptop.hprs.local has address

Open in new window

I don't know that I've done anything at all to this basic bind/dhcpd configuration, but now I cannot resolve them:
$ host hplaptop
Host hplaptop not found: 3(NXDOMAIN)

Open in new window

I need help!

My named.conf:
options {
        directory "/var/named";
        forwarders {            // These are the ISP provided name servers

        allow-query {           // Permit querying by others in the domain

zone "localhost" {
        type master;
        file "db.local";

zone "" {
        type master;
        file "db.127";

zone "hprs.local" in {
    type master;
    allow-update {;; };         // local DHCP server
    file "db.hprs.local";

zone "" in {
    type master;
    allow-update {;; };           // local DHCP server
    file "db.192.168.0";

Open in new window

Zone file /var/named/db.hprs.local
$TTL 14400      ; 4 hours
hprs.local              IN SOA  mail.hprs.local. (
                                3          ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                3600       ; minimum (1 hour)
                        NS      mail.hprs.local.
$ORIGIN hprs.local.
$TTL 14400      ; 4 hours
mail                    A
$TTL 14400      ; 4 hours
richo                   A

Open in new window


ddns-updates on;
update-static-leases on;
allow unknown-clients;
ddns-update-style interim;
default-lease-time 86400;

zone hprs.local. { primary; }
zone { primary; }

subnet netmask {
    option routers;
    option domain-name-servers;
    option domain-name "hprs.local";
    ddns-domainname = "hprs.local.";
    ddns-rev-domainname = "";

Open in new window

Releasing/renewing the client appears to work:
Jul 24 16:07:01 mail named[4966]: client updating zone '': deleting rrset at '' PTR
Jul 24 16:07:01 mail dhcpd: DHCPRELEASE of from 00:25:b3:bf:f5:42 (hplaptop) via eth1 (found)
Jul 24 16:07:01 mail dhcpd: Removed reverse map on
Jul 24 16:07:01 mail dhcpd: DHCPDISCOVER from 00:25:b3:bf:f5:42 via eth1
Jul 24 16:07:01 mail dhcpd: DHCPOFFER on to 00:25:b3:bf:f5:42 (hplaptop) via eth1
Jul 24 16:07:01 mail named[4966]: client updating zone '': deleting rrset at '' PTR
Jul 24 16:07:01 mail named[4966]: client updating zone '': adding an RR at '' PTR
Jul 24 16:07:01 mail dhcpd: DHCPREQUEST for ( from 00:25:b3:bf:f5:42 (hplaptop) via eth1
Jul 24 16:07:01 mail dhcpd: DHCPACK on to 00:25:b3:bf:f5:42 (hplaptop) via eth1
Jul 24 16:07:02 mail dhcpd: Added reverse map from to hplaptop.hprs.local

Open in new window

But I can't resolve hplaptop from the Linux DNS server and there is no db.hprs.local.jnl file created.

Interestingly, a db.192.169.0.jnl file *is* created and I can resolve by IP:
$ host domain name pointer hplaptop.hprs.local.

Open in new window

Please help! I'm stuck!
Question by:jmarkfoley
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4

Author Comment

ID: 40218666
more info: I am getting the error:
Jul 25 02:42:41 mail named[4890]: client update 'hprs.local/IN' denied

Open in new window

Odd that it can update the reverse zone file, but not the forward zone file.

Author Comment

ID: 40218692
I believe I've figured this one out. I needed "ignore client-updates" in my dhcpd.conf file in the general option section. I'm going to give it a day or so because I've had this problem intermittently in the past.
LVL 57

Expert Comment

ID: 40219151
Were both host commands done on the same computer?

If not, I would also verify your resolver.conf file on each computer is correct.  Make sure you have the "search hprs.local"  Since you are just putting in the host name and not the FQDN it will try to look up just plain "hplaptop", which would not exist on DNS server.  It might exist in a local hosts file, but not on a DNS server.

Accepted Solution

jmarkfoley earned 0 total points
ID: 40219523
> Were both host commands done on the same computer?


resolv.conf does have "search hprs.local". /etc/resolv.conf
domain hprs.local
search hprs.local

Open in new window

I think the "ignore client-updates" in dhcpd.conf might have fixed it. This person had the same problem: updating reverse-DNS, but not forward-DNS zone files:  Here's and excerpt from the dhcpd.conf man page:

       ... the  DHCP server does not necessarily always update both the A and the PTR records.  The FQDN
       option includes a flag which, when sent by the client, indicates that the  client  wishes  to
       update  its  own  A  record.   In that case, the server can be configured either to honor the
       client's intentions or ignore them.  This is done with the statement allow client-updates; or
       the statement ignore client-updates;.  By default, client updates are allowed.

       If  the server is configured to allow client updates, then if the client sends a fully-quali-
       fied domain name in the FQDN option, the server will use that name the  client  sent  in  the
       FQDN  option  to update the PTR record.  For example, let us say that the client is a visitor
       from the "" domain, whose hostname is "jschmoe".  The  server  is  for  the  "exam-"   domain.   The  DHCP  client  indicates  in  the  FQDN  option  that  its  FQDN  is
       "".  It also indicates that it wants to update its own A record.  The DHCP
       server therefore does not attempt to set up an A record for the client, but does set up a PTR
       record for the IP address that it assigns the client, pointing at   Once
       the  DHCP  client  has  an  IP  address,  it  can  update its own A record, assuming that the
       "" DNS server will allow it to do so.

Apparently my server is NOT allowing client A record updates. I get the error
Jul 25 10:20:26 mail named[10244]: client update 'hprs.local/IN' denied

Open in new window

Which, I assume, is the client wanting to do the update. Putting that option in the dhcpd.conf file causes dhcpd to go ahead and do the update itself. These are Windows clients, so I have to decide whether to figure out how to let them to do update, or if my solution is the correct one or a Band-Aid.

Author Closing Comment

ID: 40231257
my solution of "ignore client-updates" did the trick

Featured Post

Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question