dhclient.conf: prepend domain-name-servers doesn't influence resolv.conf
I've set up dnsmasq in order to:
- cache my DNS queries.
- use nameservers of my choice (instead of my ISP's)
That part is working fine.
I can manually set /etc/resolv.conf to:
And I find dnsmasq handles DNS queries for me.
Now, I want to make this permanent.
I'm having trouble configuring /etc/dhcp3/dhclient.conf.
According to various docs, if I include the line:
prepend domain-name-servers 127.0.0.1
I am expecting that a lease renewal should put this
line in resolv.conf:
I was expecting something like:
nameserver 192.168.0.1 # router's address
But after /etc/init.d/networking restart I get the same
resolv.conf as usual:
If this much would work, I would further like to add to dhclient.conf:
To get something like:
To be honest, I don't understand how the 'domain' and 'search'
fields affect my system's behavior.
Can anyone comment on why dhclient.conf doesn't influence
the resolv.conf after a networking restart?