On 12/08/10 16:13, Mark Rogers wrote:
I tried echo "search my-domain" | resolvconf -a eth0 .. but that overwrites the config (ie it loses the nameserver info put in there by DHCP). How do all the various bits sit together?
Still having no joy with this. I tried bypassing resolvconf and adding: sed -i.old -e 's/search /search my-domain /i' /etc/resolv.conf
.. into an if-up.d script, but it's having no effect, I'm not sure why.
This is proving to be a real pain! Is there any way to fix my search domains so that all the relevant scripts load them from somewhere (environment variables?) and ignore what the DHCP server tells me?