[Dnsmasq-discuss] New dnsmasq router

Matt Ginzton matt at ginzton.net
Tue Dec 13 17:17:14 GMT 2011


>> 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




More information about the Dnsmasq-discuss mailing list