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 |
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; |
Yap! It works now, thanks:)
|
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 |
Quote:
|
All times are GMT -5. The time now is 03:04 PM. |