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

Re: Resolvconf -- a package to manage /etc/resolv.conf



Hi,

	I have a laptop that sometimes is on fixed ip wireless
 networks. Since dhcp is not involved, there is nothing that updates
 resolvconf, which could be pointing to an inaccurate set of servers.

	The solution, in my case, was to  add the following star and
 stop functions to the relevant stanza's (edit for the  static dns
 servers) 

  # Extra stuff to do after setting up the interface
  start_fn () {
    [ -x /sbin/resolvconf ]  && \
       echo "nameserver 127.0.0.1"    | /sbin/resolvconf -a $DEVICE;
    [ -x /sbin/resolvconf ]  && \
       echo "nameserver 192.168.1.10" | /sbin/resolvconf -a $DEVICE;
    [ -x /sbin/resolvconf ]  && \
       echo "nameserver 198.6.1.4"    | /sbin/resolvconf -a $DEVICE;
  }
  # Extra stuff to do before shutting down the interface
  stop_fn () { [ -x /sbin/resolvconf ]  && /sbin/resolvconf -d $DEVICE; }

	manoj
-- 
What's love but a second-hand emotion? Tina Turner
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: