How to setup dhcp3-server to advertise the DNS server the server itself has got from DHCP?

Posted by Ivan on Server Fault See other posts from Server Fault or by Ivan
Published on 2010-12-21T10:26:54Z Indexed on 2010/12/21 10:55 UTC
Read the original article Hit count: 252

Filed under:
|

The Ubuntu 10.04 server has eth0 Internet interface configured by means of an ISP's DHCP. At the same time the server has static eth0 LAN interface to which it provides masquerading (NAT) and LAN-internal DHCP service (dhcp3-server).

As far as I've understood the manual, I had to hardcode DNS servers to advertise through LAN DHCP with option domain-name-servers in dhcpd.conf.

But what if the ISP changes his DNS server IP silently (we use a SOHO-class ISP, so this won't surprise me much)? Can I configure dhcpd to advertise the DNS server the server uses itself, the one gotten by its DHCP client mechanism?

© Server Fault or respective owner

Related posts about dns

Related posts about dhcp