Date: Fri, 15 Jun 2012 13:59:00 -0700 From: Darren Pilgrim <list_freebsd@bluerosetech.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: freebsd-hackers@freebsd.org Subject: Re: /etc/resolv.conf getting over written with dhcp Message-ID: <4FDBA214.1070807@bluerosetech.com> In-Reply-To: <4FDB4362.8020509@grosbein.net> References: <4FDB25E0.2070705@eudaemonicsystems.net> <4FDB4362.8020509@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-06-15 07:14, Eugene Grosbein wrote: > 15.06.2012 19:09, Varuna пишет: > >> About 2***, so what are the conditions to be true to figure out that >> /etc/resolv.conf has not changed? > > There is simple solution: create file /etc/dhclient-enter-hooks > and override add_new_resolv_conf() there to do nothing: > > add_new_resolv_conf() { > return 0 > } > > Works just fine for my systems. Or just add something like: interface "eth0" { supersede domain-name "example.com."; supersede domain-name-servers 192.0.2.1; } To your /etc/dhclient.conf and make dhclient do the right thing.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FDBA214.1070807>