Preserving custom resolv.conf entries using resolvconf

From Brandonhutchinson.com

Revision as of 19:00, 24 November 2007 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
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