{ "dhcp": "config dnsmasq\n\toption domainneeded\t1\n\toption boguspriv\t1\n\toption filterwin2k\t0 # enable for dial on demand\n\toption localise_queries\t1\n\toption rebind_protection 1 # disable if upstream must serve RFC1918 addresses\n\toption rebind_localhost 1 # enable for RBL checking and similar services\n\t#list rebind_domain example.lan # whitelist RFC1918 responses for domains\n\toption local\t'/lan/'\n\toption domain\t'lan'\n\toption expandhosts\t1\n\toption nonegcache\t0\n\toption cachesize\t1000\n\toption authoritative\t1\n\toption readethers\t1\n\toption leasefile\t'/tmp/dhcp.leases'\n\toption resolvfile\t'/tmp/resolv.conf.d/resolv.conf.auto'\n\t#list server\t\t'/mycompany.local/1.2.3.4'\n\toption nonwildcard\t1 # bind to & keep track of interfaces\n\t#list interface\t\tbr-lan\n\t#list notinterface\tlo\n\t#list bogusnxdomain '64.94.110.11'\n\toption localservice\t1 # disable to allow DNS requests from non-local subnets\n\toption ednspacket_max\t1232\n\toption filter_aaaa\t0\n\toption filter_a\t\t0\n\t#list addnmount\t\t/some/path # read-only mount path to expose it to dnsmasq\n\nconfig dhcp lan\n\toption interface\tlan\n\toption start \t100\n\toption limit\t150\n\toption leasetime\t12h\n\nconfig dhcp wan\n\toption interface\twan\n\toption ignore\t1\n", "steps": [ { "what": "on the tunnels, home names from the LAN", "target": { "mode": "root", "port": 5354 }, "lan": "192.168.77.1", "changed": true, "conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn1\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status", "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] }, { "what": "again: nothing to do", "target": { "mode": "root", "port": 5354 }, "lan": "192.168.77.1", "changed": false, "conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn1\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] }, { "what": "inside the netns", "target": { "mode": "ns", "address": "100.127.0.2", "port": 53 }, "lan": "192.168.77.53", "changed": true, "conf": "# mode=ns\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=53\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nlisten-address=100.127.0.2\nbind-interfaces\nno-resolv\nserver=9.9.9.9@100.127.0.2\nserver=149.112.112.112@100.127.0.2\nserver=/lan/192.168.77.53\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status", "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] }, { "what": "back on the tunnels with one of them off, no DNS on the LAN, a running one to stop", "target": { "mode": "root", "port": 5354 }, "lan": null, "changed": true, "conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\ninterface=dawn0\ninterface=dawn2\nresolv-file=/var/etc/dawnline-dns.resolv\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status", "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] }, { "what": "no tunnel on: loopback only", "target": { "mode": "root", "port": 5354 }, "lan": "192.168.77.1", "changed": true, "conf": "# mode=root\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=5354\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nbind-dynamic\nlisten-address=127.0.0.1\nresolv-file=/var/etc/dawnline-dns.resolv\nserver=/lan/192.168.77.1\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status", "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] }, { "what": "the WAN says nothing of DNS: two public ones", "target": { "mode": "ns", "address": "100.127.0.2", "port": 53 }, "lan": "192.168.77.1", "changed": true, "conf": "# mode=ns\n# Generated by Dawnline: plain DNS for Home-only tunnel clients.\nport=53\nno-hosts\nbogus-priv\ncache-size=1000\npid-file=/var/run/dawnline-dns.pid\nuser=dnsmasq\ngroup=dnsmasq\nlisten-address=100.127.0.2\nbind-interfaces\nno-resolv\nserver=1.1.1.1@100.127.0.2\nserver=8.8.8.8@100.127.0.2\nserver=/lan/192.168.77.1\n", "resolv": "nameserver 9.9.9.9\nnameserver 149.112.112.112\n", "cmds": [ "ubus call network.interface.wan status", "ubus call network.interface.wan6 status", "ubus call network.interface.wan status", "ubus call network.interface.wan6 status" ] } ] }