Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-27-2012, 05:42 PM   #1
Registered: Mar 2010
Posts: 58

Rep: Reputation: 5
Question dhcpd can't do dns lookups?

Here's an odd one...

First, for those who don't know, dhcpd.conf has a keyword called "fixed-address" that allows administrators to assign specific IP addresses to specific MAC addresses. With this, we don't have to configure address pools. Along with other keywords (including "host," here), all hostname and network information can be kept in a central location for pickup by the individual hosts via DHCP. In Enterprise-sized networks, this is a huge time saver. Also, according to the dhcpd.conf man page, "[e]ach address in the fixed-address declaration should be either an IP address or a domain name that resolves to one or more IP addresses."

So, what I have is a bunch of entries like this:
host wrkstn01.q.d.n {hardware ethernet 01:02:03:04:05:ff; fixed-address workstn01.q.d.n;}
and I can do forward and reverse "host" and "nslookup" commands against workstn01.q.d.n and its IP address all day long.

However, dhcpd appears to be unable to resolve the hostname. So, I'll get
dhcpd: DHCPDISCOVER from 01:02:03:04:05:ff via eth0: network 192.168.15/24: no free leases
If I substitute, say, in the "fixed-address" statement, dhcpd will serve the information up just fine.

Weird, huh? I've verified spelling in dhcpd.conf and in the zone files. As I mentioned, I can do command-line lookups all day long. The only problem appears to be that dhcpd can't resolve the host name.

What'm I missing?



dhcpd, dns

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer with DNS lookups jnichel Linux - Software 21 01-23-2009 11:13 AM
Slow DNS Lookups JustinK101 Linux - Software 1 01-29-2007 06:48 PM
sendmail dns lookups davidsrsb Linux - Networking 1 06-09-2005 09:35 PM
Sendail and DNS lookups Hessian Rider Linux - Networking 3 11-05-2002 07:03 AM
Allow DNS lookups through ipchains? ifm Linux - Security 4 08-09-2002 08:17 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration