Hi all,
I finally set up unbound on my pihole server using the following guide:
First of all I have to say after searching through youtube videos and the internet that guide was the best in explaining what unbound does. Good job on the well written guide (everything on this site is top notch).
I'm assuming my unbound is working properly from the following lines I copied and pasted below using command sudo pihole -t:
17:59:20: query[A] discourse.pi-hole.net from 192.168.1.109
17:59:20: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:20: query[AAAA] discourse.pi-hole.net from 192.168.1.109
17:59:20: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:20: reply discourse.pi-hole.net is 52.14.183.198
17:59:20: reply discourse.pi-hole.net is NODATA-IPv6
17:59:21: query[A] discourse.pi-hole.net from 192.168.1.109
17:59:21: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:21: query[AAAA] discourse.pi-hole.net from 192.168.1.109
17:59:21: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:21: query[A] discourse.pi-hole.net from 192.168.1.109
17:59:21: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:21: query[AAAA] discourse.pi-hole.net from 192.168.1.109
17:59:21: forwarded discourse.pi-hole.net to 127.0.0.1#5335
17:59:21: reply discourse.pi-hole.net is <CNAME>
17:59:21: reply piholediscourse.b-cdn.net is 138.199.40.58
17:59:21: reply discourse.pi-hole.net is <CNAME>
17:59:21: reply discourse.b-cdn.net is 109.61.86.193
17:59:22: reply discourse.pi-hole.net is <CNAME>
17:59:22: reply discourse.b-cdn.net is 2a02:6ea0:f904::1163:1
17:59:22: reply discourse.pi-hole.net is <CNAME>
17:59:22: reply piholediscourse.b-cdn.net is NODATA-IPv6
17:59:24: query[A] discourse.pi-hole.net from 192.168.1.109
17:59:24: cached discourse.pi-hole.net is <CNAME>
17:59:24: cached piholediscourse.b-cdn.net is 138.199.40.58
17:59:24: query[AAAA] discourse.pi-hole.net from 192.168.1.109
17:59:24: cached discourse.pi-hole.net is <CNAME>
17:59:24: cached piholediscourse.b-cdn.net is NODATA-IPv6
18:00:00: query[PTR] 1.1.168.192.in-addr.arpa from 127.0.0.1
18:00:00: config 192.168.1.1 is NXDOMAIN
18:00:00: query[PTR] 109.1.168.192.in-addr.arpa from 127.0.0.1
18:00:00: config 109.1.168.192.in-addr.arpa is <PTR>
18:00:00: query[PTR] 1.0.0.1.in-addr.arpa from 127.0.0.1
18:00:00: cached 1.0.0.1 is one.one.one.one
18:00:00: query[PTR] 1.1.1.1.in-addr.arpa from 127.0.0.1
18:00:00: cached 1.1.1.1 is one.one.one.one
18:00:00: query[PTR] 9.9.9.9.in-addr.arpa from 127.0.0.1
18:00:00: cached 9.9.9.9 is dns9.quad9.net
18:00:00: query[PTR] 112.112.112.149.in-addr.arpa from 127.0.0.1
18:00:00: cached 149.112.112.112 is dns.quad9.net
I have two questions though which I wasn't sure about. I run the latest version of Debian 12 and when I ran the following command it shows it is inactive.
systemctl is-active unbound-resolvconf.service
Do I have to do anything else regarding the section "Disable resolvconf.conf
entry for unbound
" in the guide (near the end of the guide)?
The second question involves the following section of the guide:
If you are installing unbound from a package manager, it should install the
root.hints
file automatically with the dependencydns-root-data
. The root hints will then be automatically updated by your package manager.Optional: Download the current root hints file (the list of primary root servers which are serving the domain "." - the root domain). Update it roughly every six months. Note that this file changes infrequently. This is only necessary if you are not installing unbound from a package manager. If you do this optional step, you will need to uncomment the
root-hints:
configuration line in the suggested config file.
wget https://www.internic.net/domain/named.root -qO- | sudo tee /var/lib/unbound/root.hints
How do I know if the roots.hint file is installed on my system? My understanding is that if the file is not installed then I have to run the wget command above every 6 months or so (which I can put in my crontab file if I need to). Any feedback would be greatly appreciated.