Re: /etc/resolv.conf getting over written with dhcp

2012-06-27 Thread Ian Lepore
On Wed, 2012-06-20 at 13:39 +0530, Varuna wrote: > Ian Lepore wrote: > > > > Using the 'prepend' or 'supercede' keywords in /etc/dhclient.conf is > > pretty much the standard way of handling a mix of static and dhcp > > interfaces where the static config needs to take precedence. I'm not > > sure

Re: /etc/resolv.conf getting over written with dhcp

2012-06-20 Thread Varuna
Ian Lepore wrote: Using the 'prepend' or 'supercede' keywords in /etc/dhclient.conf is pretty much the standard way of handling a mix of static and dhcp interfaces where the static config needs to take precedence. I'm not sure why you dismiss it as essentially good, but somehow not good enough.

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Darren Pilgrim
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 not

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Ian Lepore
On Fri, 2012-06-15 at 23:02 +0530, Varuna wrote: > Thanks for the pointers. > > Dima Panov wrote: > > From my /etc/dhclient.conf: > > > > interface "lagg0" { > > send dhcp-lease-time 3600; > > prepend domain-name-servers 127.0.0.1, 4.4.4.4, 8.8.8.8; > > request subnet-mask, broadcast

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Varuna
Thanks for the pointers. Dima Panov wrote: From my /etc/dhclient.conf: interface "lagg0" { send dhcp-lease-time 3600; prepend domain-name-servers 127.0.0.1, 4.4.4.4, 8.8.8.8; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers;

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Eugene Grosbein
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 }

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Teske, Devin
On Jun 15, 2012, at 5:47 AM, Volodymyr Kostyrko wrote: > Varuna wrote: >> Hello Folks, >> >> Noticed a strange issue with the creation / update of /etc/resolv.conf. >> The details of the system that I noticed the issue on is: >> Version : FreeBSD 8.0 >> Patch level: not patched >> Uname: FreeB

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Dima Panov
15.06.2012 23:09, Varuna написал: Hello Folks, Noticed a strange issue with the creation / update of /etc/resolv.conf. The details of the system that I noticed the issue on is: Version : FreeBSD 8.0 Patch level: not patched Uname: FreeBSD shastry.eudaemonicsystems.net 8.0-RELEASE FreeB

Re: /etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Volodymyr Kostyrko
Varuna wrote: Hello Folks, Noticed a strange issue with the creation / update of /etc/resolv.conf. The details of the system that I noticed the issue on is: Version : FreeBSD 8.0 Patch level: not patched Uname: FreeBSD shastry.eudaemonicsystems.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Thu Sep 29

/etc/resolv.conf getting over written with dhcp

2012-06-15 Thread Varuna
Hello Folks, Noticed a strange issue with the creation / update of /etc/resolv.conf. The details of the system that I noticed the issue on is: Version : FreeBSD 8.0 Patch level: not patched Uname: FreeBSD shastry.eudaemonicsystems.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Thu Sep 29 22:37