Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-17-2007, 07:10 PM   #1
LQ Newbie
Registered: Jan 2006
Location: Winooski, VT
Distribution: RedHat
Posts: 3

Rep: Reputation: 0
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 resolves to 70.x.x.x. My windows hosts get the 70.x.x.x

Thanks in advance
Old 05-17-2007, 07:16 PM   #2
Senior Member
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
option domain-name-servers hostname;
Have you tried just using an IP address?
option domain-name-servers;
Old 05-17-2007, 07:25 PM   #3
LQ Newbie
Registered: Jan 2006
Location: Winooski, VT
Distribution: RedHat
Posts: 3

Original Poster
Rep: Reputation: 0
yes, that works. I am curious why the other way does not though.


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
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
Failing to assign DNS servers to lan in DHCP Samhein Linux - Networking 3 01-25-2006 09:56 AM
DHCP problems - multiple DHCP servers sat86 Linux - Networking 4 10-02-2005 05:43 AM
Wrong Hostname in the DNS and DHCP Address Leases of Windows 2000 saneax Linux - Networking 1 03-03-2005 03:14 AM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM

All times are GMT -5. The time now is 02:44 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