If you're using DHCP, locate the file inet1.conf
in the /etc
directory; on some systems it will be found in /etc/rc.d
, you may need to look around.
If you have trouble finding the file, this may be useful:
su - or sudo
find . -type f -print | xargs grep -il DHCP_KEEPRESOLV
That will locate the file name for you; be sure to edit the one that has "conf" in its name.
In that file there should be a group of DHCP parameters that you can change -- the one you want to change is highlighted in this list.
If you uncomment the highlighted line above, that should prevent DHCP from overwriting /etc/resolv.conf
. You'll need to stop and restart your network services for this change to take effect. You probably do not want to mess with any of the others.
Hope this helps some.