LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   dhcpd.conf - can't detect multiple DNSs (https://www.linuxquestions.org/questions/linux-server-73/dhcpd-conf-cant-detect-multiple-dnss-748702/)

stefanolima 08-19-2009 07:27 AM

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

strubbldesign 08-19-2009 07:38 AM

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;

stefanolima 08-19-2009 08:54 AM

Yap! It works now, thanks:)

strubbldesign 08-19-2009 10:39 AM

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

stefanolima 08-20-2009 12:23 AM

Quote:

Originally Posted by strubbldesign (Post 3649587)
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?


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