dnsmasq DNS server and multiple subnets

If you run into a problem where your dnsmasq DNS server is not responding to dns queries from separate subnets than the DNS┬áserver’s subnet, try setting the listen-address to the DNS┬áserver’s IP (e.g. where you’re running dnsmasq).

On the Ubiquiti EdgeRouter Lite (which is based on mips Debian wheezy) the file to change is:

(make it if it doesn’t exist)

add this to that file:

Where <DNS-SERVER-IP> is the IP of your machine that’s running dnsmasq.

If you’re running dnsmasq from the command line, without using the conf files, add this parameter

One thought on “dnsmasq DNS server and multiple subnets”

Leave a Reply

Your email address will not be published. Required fields are marked *