Make the router use dnsmasq for local name resolutions while dnsmasq is running (closes issue #599)