I'm trying to run two instances of dnsmasq on a raspberry pi, I've gotten quite far. I'm currently trying to get the first dnsmasq server to forward any request it doesn't know the answer to to the second server but it only seems to be working if I
dig <address> @127.0.0.1. Using the external addresses of the either interface, or querying from another machine doesn't do it.
Querying either server directly gets the desired result, but trying to get the first server to forward results from the second... not so much.
Config for instance A (lan):
root@Raspberry-server:~# cat /etc/dnsmasq/dnsmasq.conf port=53 except-interface=eth0.1 bind-interfaces no-hosts #changing the cache size makes no difference #cache-size=5000 cache-size=0 # uncomment to forget about 404 responses #no-negcache #resolv-file=/etc/dnsmasq/resolv.lan.conf #no-poll no-resolv strict-order server=192.168.1.13 auth-server=raspberry.lan,eth0 auth-zone=lan,192.168.1.0/24 host-record=raspberry.lan,192.168.1.11 host-record=htpc.lan,192.168.1.10 host-record=tom.lan,192.168.1.12
Config for instance B (global):
root@Raspberry-server:~# cat /etc/dnsmasq/dnsmasq.blocker.conf port=53 bind-interfaces listen-address=192.168.1.13 no-hosts addn-hosts=/etc/dnsmasq/blocked.host cache-size=100000 # uncomment to forget about 404 responses #no-negcache resolv-file=/etc/dnsmasq/resolv.blocker.conf #no-poll strict-order
Instance A status log:
systemd: Starting DNSMasq Lightweight DNS server... dnsmasq: dnsmasq: syntax check OK. dnsmasq: started, version 2.76 cache disabled dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify systemd: Started DNSMasq Lightweight DNS server. dnsmasq: using nameserver 192.168.1.13#53