Hi,
First time PiHole setup. PiHole version v5.16.2 on Debian 11 stable. /etc/resolv.conf
is configured with 127.0.0.1
(replacing the IP address of the router). The router with DDWRT firmware from March 2023, configured with the PiHole host IP address as static DNS. All is working OK.
From various PiHole setup tutorials, I noticed that the pi.hole
name seems to be resolved by the PiHole host itself. There is no host entry in the /etc/hosts
related to pi.hole
so I assume that this name should be resolved by PiHole itself.
At the time I setup PiHole, all attempts to resolve pi.hole
had failed. Either on the PiHole host itself or at one of the clients. Typically http://pi.hole/admin/
was an invalid URL. So I just access the PiHole WebAdmin using the IP address of the PiHole host.
Now a week later, I was about to post a question how to fix the pi.hole
name resolution. I made a last check on one of the home device. Surprisingly, now this name is resolved correctly. I didn't add any entry in /etc/hosts
of the client nor PiHole server.
QUESTION: what is the mechanism to resolve pi.hole
any reason for it to take sometimes to work? Also if I have two PiHole devices. Would there be any conflict in resolving the pi.hole
name?
Running on client (Ubuntu 22.04.2)
dig +nocomments +answer pi.hole
; <<>> DiG 9.18.12-0ubuntu0.22.04.1-Ubuntu <<>> +nocomments +answer pi.hole
;; global options: +cmd
;pi.hole. IN A
pi.hole. 0 IN A 192.168.1.88
;; Query time: 4 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Sun Apr 30 12:33:26 EDT 2023
;; MSG SIZE rcvd: 52
Running on PiHole server (Debian 11)
dig +nocomments +answer pi.hole
; <<>> DiG 9.16.37-Debian <<>> +nocomments +answer pi.hole
;; global options: +cmd
;pi.hole. IN A
pi.hole. 0 IN A 127.0.0.1
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Apr 30 12:33:49 EDT 2023
;; MSG SIZE rcvd: 52
Debug Token:
pihole -d
# uploaded on 2023-04-30, valid until 2023-05-02
Your debug token is: https://tricorder.pi-hole.net/BYLabQqC/