[Dnsmasq-discuss] all I wanted to do was temporarily dnsMASQ some addresses

Albert ARIBAUD albert.aribaud at free.fr
Sat Dec 14 08:45:25 GMT 2013

Le 14/12/2013 00:32, jidanni at jidanni.org a écrit :
> OK I found a method to temporarily e.g., make doubleclick point to
> localhost or back, without changing any of the Debian dnsmasq default
> configuration:
> # ed /etc/hosts
> # /etc/init.d/dnsmasq restart

Why restart (which involves a long stop and start) when you could just 
e.g. killall -HUP dnsmasq?

Also, you could use -H (-addn-hosts) and place your 
doubleclick-to-localhost and other mappings in a custom hosts file 
rather than edit /etc/hosts.

> Using instead switches mentioned on the man page probably requires
> editing /etc/dnsmasq.conf first.


More information about the Dnsmasq-discuss mailing list