LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-17-2007, 07:10 PM   #1
PCC
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 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
 
Old 05-17-2007, 07:16 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 79
Quote:
option domain-name-servers hostname;
Have you tried just using an IP address?
Code:
option domain-name-servers 10.0.0.1;
 
Old 05-17-2007, 07:25 PM   #3
PCC
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.
 
  


Reply


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 11:41 AM.

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