Results 21 to 24 of 24
Your DHCP client's behavior is controlled by a file called dhclient.conf. Code: prepend domain-name-servers 127.0.0.1; Mine has this line to always put 127.0.0.1 as the first name server, because I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-02-2009 #21
Your DHCP client's behavior is controlled by a file
prepend domain-name-servers 127.0.0.1;
name server, because I run one on the local host.
You can use DHCP and still prepend whatever server you want.
Check the man page for dhclient.
- 02-02-2009 #22
- 02-02-2009 #23
- 02-02-2009 #24
- Join Date
- Nov 2007
And as posted by the OP's research links:
The dhcp servers always may not be properly setup to pass on the correct information about the dns and domain names to the clients. Or, you might want to add your own info. But, the modifications made to /etc/resolv.conf are last after rebooting or when the next time the dhcp client contacts the server.
To retain the changes over reboot (restarting of network), you can edit /etc/dhcp3/dhclient.conf instead of resolv.conf