>> I did use a dhclient hook to tell it to stop writing to /etc/resolv.conf at 
>> all,
>> so that resolv.conf has only 127.0.0.1 as the nameserver.
> 
> This will work as well, mind sharing with me how you did this?
> 
> I know this is OT for the list so if you just want to email me
> privately thats fine.

I'll answer this on-list since we're already this far in and people might be
curious, but if you have more questions, we can take it off the list.

I just added a file in /etc/dhcp/dhclient-enter-hooks.d, which I named
no-resolv-conf, with contents

#!/bin/sh
make_resolv_conf() {
        :
}

I got this from http://www.cyberciti.biz/faq/dhclient-etcresolvconf-hooks/, #2.

hope this helps,

Matt


Reply via email to