resolv.conf overwrite override

My resolv.conf file was being overwritten by the dhcp client on my ubuntu workstation. This broke various network connections due to the overwritten file using commas to delimit the domain search list. I couldn’t fix the root cause (dhcp client), but I fixed the problem via a builtin workaround by editing the dhclient.conf file.

This file is in the /etc/dhcp3 folder on my machine. I added a ’supersede’ line containing the domain search list that I wanted, recycled the dhcp client, and checked resolv.conf. Perfect.

The line I added looks something like this:

supersede domain-name “mydomain.com domain2.com domain3.com “;

Notice I use spaces to delimit the entries in the search list.

Leave a Reply