Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2012 21:14:58 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Varuna <varuna@eudaemonicsystems.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: /etc/resolv.conf getting over written with dhcp
Message-ID:  <4FDB4362.8020509@grosbein.net>
In-Reply-To: <4FDB25E0.2070705@eudaemonicsystems.net>
References:  <4FDB25E0.2070705@eudaemonicsystems.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Eugene Grosbein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FDB4362.8020509>