web icon indicating copy to clipboard operation
web copied to clipboard

DNS server is printed using words instead of numbers in dashboard

Open adeelurehman opened this issue 3 years ago • 1 comments

Just open the admin panel.

Debug Token

  • URL:

Screenshots

image

image

Additional context

Add any other context about the problem here.

adeelurehman avatar Dec 21 '22 11:12 adeelurehman

This is normal. Pi-hole does a PTR query on the upstream DNS server IP to determine the name of the DNS server, and displays that.

root@nanopi:~# dig -x 1.1.1.1

; <<>> DiG 9.11.5-P4-5.1+deb10u8-Debian <<>> -x 1.1.1.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38556
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;1.1.1.1.in-addr.arpa.          IN      PTR

;; ANSWER SECTION:
1.1.1.1.in-addr.arpa.   1800    IN      PTR     one.one.one.one.

Cloudflare responds with the same name for their alternate DNS server:

;; ANSWER SECTION:
1.0.0.1.in-addr.arpa.   1800    IN      PTR     one.one.one.one.

Edit - if you prefer to see something other than the names provided by Cloudflare, you can map those IP's to your preferred names in a local hosts file on the Pi (/etc/hosts or using Local DNS records in Pi-hole).

1.1.1.1  Cloudflare-1
1.0.0.1  Cloudflare-2

jfb-pihole avatar Dec 21 '22 14:12 jfb-pihole