This is the way I believe it should be done:
change /etc/dhclient.conf by adding following:
Code:
interface "eth0" {
prepend domain-name-servers 208.67.222.222 208.67.220.220;
}
didn't work - still used old dns. I thought this saved adding DNS to resolv.conf - and thus fiddling about with it being over-written.
I then changed /etc/rc.d/rc.inet1.conf
Code:
DHCP_KEEPRESOLV[0]="yes"
This resulted in a new resolv.conf being created with no DNS addresses but "search org".
I then improvised. I added the DNS servers to resolv.conf and made it READ-ONLY (0444).
This now works. But surely this is NOT the correct way to do it?
I did not reverse the above changes - but it seems to me that that instead of changing those configuration files, I could have just made resolv.conf read-only in the first place.
What is the correct and orthodox way to add a DNS to the system?
I have a conventional desktop system connected via dhcp and it seems that my IP address is fixed.