[RFC] Automated generation of /etc/resolv.conf from the rc.d script

Zaphod Beeblebrox zbeeble at gmail.com
Mon Apr 14 17:53:01 UTC 2008


On Fri, Dec 14, 2007 at 6:14 AM, Eygene Ryabinkin <rea-fbsd at codelabs.ru>
wrote:


> This can be achieved with the script /etc/dhclient-exit-hooks that
> will create the file with named 'forwarders' clause using values
> from 'new_domain_name' and 'new_domain_name_servers' variables that
> are exported to the hooks script by /sbin/dhclient-script.  The
> former file can be included from named.conf, so the restart or
> reload of the local named instance from the exit hooks script will
> do the trick.


Last I tried, the OpenBSD dhclient we imported a year ago blithely ignored
the dhclient-exit-hooks scripts.  This is annoying because in my
application, I want to set specific routes not default routes on a
successful DHCP (ie: a tunneling CPE device).  I had to revert to the
ISC-DHCP to restore working dhclient script functionality.  Note also that
the source and man documentation on this subject appear to document the
correct behaviour (not the behaviour of the system).


More information about the freebsd-current mailing list