Http://pi.hole/admin unable to resolve

Pi-Hole installed on Raspberry Pi4 with UnBound on port 5353 as the sole DNS server

Expected Behaviour:

http://pi.hole/admin should load the Pi-Hole admin page.

Actual Behaviour:

page does not resolve, and I get the error ERR_CONNECTION_REFUSED

Debug Token:

https://tricorder.pi-hole.net/71dp1ykdz9/

local.list contents are
192.168.1.254 pi.hole

pi@PiBrain:/etc/pihole $ nslookup 192.168.1.254
254.1.168.192.in-addr.arpa      name = pi.hole.

pi@PiBrain:/etc/pihole $ nslookup pi.hole 192.168.1.254
Server:         192.168.1.254
Address:        192.168.1.254#53

Name:   pi.hole
Address: 192.168.1.254

pi@PiBrain:/etc/pihole $ dig pi.hole/admin

; <<>> DiG 9.11.5-P4-5.1+deb10u1-Raspbian <<>> pi.hole/admin
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 64187
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;pi.hole/admin.                 IN      A

;; AUTHORITY SECTION:
.                       2815    IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2020082602 1800 900 604800 86400

;; Query time: 73 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Aug 26 19:10:15 EDT 2020
;; MSG SIZE  rcvd: 117
UnBound troubleshooting
pi@PiBrain:/etc $ sudo service unbound status
● unbound.service - Unbound DNS server
   Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2020-08-26 16:33:21 EDT; 2h 51min ago
     Docs: man:unbound(8)
  Process: 556 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
  Process: 582 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
 Main PID: 594 (unbound)
    Tasks: 1 (limit: 3862)
   CGroup: /system.slice/unbound.service
           └─594 /usr/sbin/unbound -d

Aug 26 16:33:17 PiBrain systemd[1]: Starting Unbound DNS server...
Aug 26 16:33:20 PiBrain package-helper[582]: /var/lib/unbound/root.key has content
Aug 26 16:33:20 PiBrain package-helper[582]: fail: the anchor is NOT ok and could not be fixed
Aug 26 16:33:21 PiBrain unbound[594]: [594:0] info: start of service (unbound 1.9.0).
Aug 26 16:33:21 PiBrain systemd[1]: Started Unbound DNS server.
pi@PiBrain:/etc $ dig pi-hole.net @127.0.0.1 -p 5353

; <<>> DiG 9.11.5-P4-5.1+deb10u1-Raspbian <<>> pi-hole.net @127.0.0.1 -p 5353
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1875
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;pi-hole.net.                   IN      A

;; ANSWER SECTION:
pi-hole.net.            3600    IN      A       192.124.249.118

;; Query time: 99 msec
;; SERVER: 127.0.0.1#5353(127.0.0.1)
;; WHEN: Wed Aug 26 19:29:36 EDT 2020
;; MSG SIZE  rcvd: 56

This is not a domain (it is a URL). Dig works on the domain level only.

Unbound will not be involved in resolving your local domain pi.hole nor in loading the web admin.

You have both Apache2 and lighttpd running, but neither appears to be running on the default http port (80).

*** [ DIAGNOSING ]: Ports in use
*:81 apache2 (IPv6)
*:81 apache2 (IPv6)
*:81 apache2 (IPv6)
*:8008 lighttpd (IPv4)
*:8008 lighttpd (IPv6)

You have moved lighttpd to an alternate port, but you did not specify the alternate port in the URL you requested for the admin GUI.

server.port = 8008

Lastly, this entry in your adlists is invalid. This is not the URL or file location of a block list.

^(.+[_.-])?ad[sxv]?[0-9]*[_.-]

And these are the same list (choose one or the other):

https://dbl.oisd.nl
http://hosts.oisd.nl/
1 Like

wow. thank you so much! i edited /etc/lighttpd/lighttpd.conf and changed server.port to 80, the restarted the service. http://pi.hole/admin works now!!

edit: and made the other changes. again, thank you

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.