LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2009, 07:27 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
dhcpd.conf - can't detect multiple DNSs - Solved


Hi!

I've configured my dhcpd.conf to use more than one DNS so that in case one is down the other takes over. But the problem is the ipconfig/all (for microsoft PCs) always shows the same DNS server. So when that server is down I've to reconfigure dhcpd.conf (comment the line for that offline server and let dhcpd.conf accept other servers)

i.e.
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#

default-lease-time 36000;
max-lease-time 36000;
#domain name
option domain-name "mylinuxforme.co.zz";
#name server
option domain-name-servers 196.xx.xyz.10;
option domain-name-servers 196.xx.wxy.10;


By this, ipconfig/all always takes 196.xx.xyz.10, if that server is down I've to comment the line
#option domain-name-servers 196.xx.xyz.10;
and then dhcp server takes 196.xx.wxy.10 as dns

How can I reconfigure dhcpd.conf so that it takes all dns servers?

Thanks,
Stefano

Last edited by stefanolima; 08-20-2009 at 12:15 AM.
 
Old 08-19-2009, 07:38 AM   #2
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
in configs linux always takes the first entry of an option
in your case just simply add the alternate addresses into the first line separated by ","

Code:
option domain-name-servers 196.x.y.z, 196.y.z.a;
 
Old 08-19-2009, 08:54 AM   #3
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Yap! It works now, thanks
 
Old 08-19-2009, 10:39 AM   #4
strubbldesign
Member
 
Registered: Aug 2009
Distribution: Gentoo Xenserver (x/k)ubuntu CentOS
Posts: 36

Rep: Reputation: 15
Smile Solved

As its now solved, please mark this thread as solved by going to the First post editing. Advanced options. Next to the title the dropdown menu and select [solved]

so its easyier for others with the Same problem to find a solution instandly.

Thanks
 
Old 08-20-2009, 12:23 AM   #5
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by strubbldesign View Post
As its now solved, please mark this thread as solved by going to the First post editing. Advanced options. Next to the title the dropdown menu and select [solved]

so its easyier for others with the Same problem to find a solution instandly.

Thanks
Good but couldn't see that drop down menu which contain solved, after opening first post->edit->advanced option, so I just edited the title and added solved! Can u please elaborate clearly the location of that drop down menu?
 
  


Reply



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
How to re-invoke dhcpd after changes were made to dhcpd.conf file. Azazwa Linux - Newbie 3 03-30-2009 04:44 AM
/etc/dhcpd.conf or /ltsp/dhcpd.conf ? maxsanders Ubuntu 1 07-07-2007 06:32 AM
dhcpd.conf multiple subnet / single physical network configuration kovert Linux - Server 0 09-02-2006 01:14 AM
How to get dhcpd.conf to support multiple ISP routers? spadesmaster Linux - Networking 5 09-22-2005 01:18 PM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration