[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: having DHCP use name server from PPP connection?



Daniel B. wrote:
Can dhcpd be configured to pass on (to DHCP clients on a local,
private (NATted) network) the DHCP server machine's current domain
name server addresses (given to the machine by PPP (etc.))?


What happens when your server's current name server changes before the DHCP lease expires?


I see how to hard-code name servers in /etc/dhcpd.conf with the
domain-name-servers statement.

However, I don't yet see how to have dhcpd report whichever name
servers are listed in /etc/resolve.conf (put there by PPP's
/etc/dhcpd.conf).

(What does dhcpd give to clients if there is no domain-name-servers
statement?  The documentation I've seen (dhcpd, dhcpd.conf manual
pages; Sarge version) doesn't seem to say.)

It probably does not give anything.

One possible solution to your problem is to run one of the several caching name servers like pdnsd or dnsmasq on your DHCP server and pass on your DHCP servers lan IP as the DNS server IP to the clients.

Another solution is to use a public DNS server or to run your own DNS.




Thanks,
Daniel


--

If you can't explain it simply, you don't understand it well enough.
                                       -- Albert Einstein


Reply to: