Preserving custom resolv.conf entries using resolvconf

From Brandonhutchinson.com

Jump to: navigation, search

Custom resolv.conf entries are normally overwritten by programs such as pppd and dhclient. In this example, the resolvconf utility is configured to permanently add example.com to the default domain search path.

$ apt-get install resolvconf
$ sudo ln -sf /etc/resolvconf/run/resolv.conf /etc/resolv.conf
$ sudo /bin/sh -c 'echo search example.com > /etc/resolvconf/resolv.conf.d/base'
Personal tools