On my AT&T router, I connected two Open WRT devices. one of them is just a Netgear R6100 with Unbound loaded default and listening to the 53 port. The ATT router assigned it an IP address of 192.168.200.100
The second device connected to my AT&T router is my main Openwrt firewall that is an Onhub running with ksmbd. It serves approximately 50 devices (including IOT) on its two interfaces (LAN and IOT).
On this main firewall, for both the LAN and the WAN, I have entered following custom DNS servers:
192.168.200.100
9.9.9.9
8.8.8.8
1.1.1.1
I hope to remove one of the public dns server every two days and watch for performance. This is our only net and its failure will make my family very unhappy and so I am taking baby stems to get off the public DNS.
Am I on the right path? I did dig and got followiung response:
agarg@anil-ZBOX-CI327:~/Downloads$ dig garg.com 192.168.200.100
; <<>> DiG 9.18.30-0ubuntu0.24.04.1-Ubuntu <<>> garg.com 192.168.200.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55236
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;garg.com. IN A
;; ANSWER SECTION:
garg.com. 300 IN A 15.197.148.33
garg.com. 300 IN A 3.33.130.190
;; Query time: 32 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Fri Feb 07 19:18:13 PST 2025
;; MSG SIZE rcvd: 69
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 16348
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;192.168.200.100. IN A
;; AUTHORITY SECTION:
. 2122 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2025020701 1800 900 604800 86400
;; Query time: 3 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Fri Feb 07 19:18:13 PST 2025
;; MSG SIZE rcvd: 119
agarg@anil-ZBOX-CI327:~/Downloads$
Also I enabled control and installed unbound-control
config unbound 'ub_main'
option add_extra_dns '0'
option add_local_fqdn '1'
option add_wan_fqdn '0'
option dhcp_link 'none'
option dhcp4_slaac6 '0'
option dns64 '0'
option dns64_prefix '64:ff9b::/96'
option domain 'lan'
option domain_type 'static'
option edns_size '1232'
option extended_stats '0'
option hide_binddata '1'
option interface_auto '1'
option listen_port '53'
option localservice '1'
option manual_conf '0'
option num_threads '1'
option protocol 'default'
option query_minimize '0'
option query_min_strict '0'
option rate_limit '0'
option rebind_localhost '0'
option rebind_protection '1'
option recursion 'default'
option resource 'default'
option root_age '9'
option ttl_min '120'
option ttl_neg_max '1000'
option unbound_control '0'
option validator '0'
option validator_ntp '1'
option verbosity '1'
list iface_trig 'lan'
list iface_trig 'wan'
list iface_wan 'wan'
#list domain_insecure 'ntp.example.com'
And it says connection refused
root@R6100-SW:~# unbound-control stats
[1738985589] unbound-control[4148:0] error: connect: Connection refused for 127.0.0.1 port 8953
root@R6100-SW:~#