How to install resolvconf on Linux

From Grid-Appliance Wiki

Jump to: navigation, search

What are resolvconf and resolv.conf

In Linux, the configuration file resolv.conf normally contains information about the nameservers to be used by the system. However, when multiple programs need to dynamically modify the resolv.conf file they can interfere with each other and the file status can be invalid (The DNS information of one interface may be overwritten by other programs). The resolvconf program addresses this problem. It acts as an intermediary between programs that supply nameserver information (e.g., the IPOP program) and programs that use nameserver information (e.g., programs using TAPIPOP interface).

Ubuntu or Debian

Just do the following will install openresolv to your system.

sudo apt-get install resolvconf

CentOS or Redhat

You need both openresolv (http://roy.marples.name/projects/openresolv) and a patch. The patch is generated by us, to make openresolv work with dhclient.

Note: to avoid direct overwriting to resolv.conf, please make sure that only "dhclient" program is actually called when changing DNS configuration (modifying resolv.conf file).

wget http://roy.marples.name/downloads/openresolv/openresolv-3.3.2.tar.bz2
tar fxjv openresolv-3.3.2.tar.bz2
cd openresolv-3.3.2
wget http://www.grid-appliance.org/files/packages/openresolv_patch.zip
unzip openresolv_patch.zip
make
./patch.sh
su -c "make install"
Personal tools