On Mon, Aug 16, 2010 at 12:58:05PM +0100, Mark Rogers wrote:
On 16/08/10 12:45, Brett Parker wrote:
There is, if I remember rightly, a top and a bottom and all manner of interesting things that can be done with it, but I don't personally use it on my laptop at the moment (though, I keep meaning to, as then I could do DNS on a trusted DNS server over ipv6 rather than believing the ISPs nameservers on the connection I'm using...), I'll see if I get a chance later (but I'm of the axiom "if it ain't broke, don't fix it" for this laptop at the moment, as it's also my primary work machine)
Indeed, top and bottom are there (in /etc/resolvconf/resolv.conf.d/ as head and tail respectively). However I want to edit one of the lines, not just append to the file.
After a reboot, my /etc/resolv.conf says:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.11.10 search ourdomain.local
What I want it to say is:
nameserver 192.168.11.10 search ourdomain.co.uk ourdomain.local
*Ideally* I want to just add ourdomain.co.uk, not replace the whole line. That way if the DHCP server sends something different in future then I don't need to change my hack.
Add:
prepend domain-name "ourdomain.co.uk";
to /etc/dhcp/dhclient.conf ?
J.