[Sderby] DNS settings

Harry Sheppard lists at disgruntledgoat.com
Sun Apr 6 11:05:54 BST 2008


> I would like to configure my laptop to use
> 4.2.2.2/4.2.2.3 as DNS. The problems is everytime
> my machines requests for a dynamic IP via DHCP, my
> DNS settings get reset.

Hello,

Depends what DHCP client your machine's using: if it's DHCPCD, you can 
pass it a -R or --nodns parameter which prevents it from touching 
/etc/resolv.conf.

I've had a quick look at dhclient's man page - nothing obvious stands 
out but there may be something in there...

You might also try setting your /etc/resolv.conf file to be read-only - 
it may prevent your DHCP client from overwriting it...

Hope that helps,
Harry




More information about the Sderby mailing list