LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP handing out the wrong dns servers (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-handing-out-the-wrong-dns-servers-554760/)

PCC 05-17-2007 07:10 PM

DHCP handing out the wrong dns servers
 
I am using CentOS 4.4 and a setup I've been using broke this week.

In dhcpd.conf I have a global option:

option domain-name-servers hostname;

I also use this box as a firewall/router and now all of my LAN hosts
are getting their DNS set to the public IP from the WAN interface.

I can't tell if this is a named problem or a dhcpd problem.

For example "hostname" on this particular server resolves to 10.0.0.1
hostname.example.com resolves to 70.x.x.x. My windows hosts get the 70.x.x.x
number.

Thanks in advance

bsdunix 05-17-2007 07:16 PM

Quote:

option domain-name-servers hostname;
Have you tried just using an IP address?
Code:

option domain-name-servers 10.0.0.1;

PCC 05-17-2007 07:25 PM

yes, that works. I am curious why the other way does not though.


All times are GMT -5. The time now is 11:18 AM.