So, I'm on newest version, I noticed the Pihole is showing wrong hostname (show my phone was active when I was away - different IP suddenly got the same hostname), so I tried to Flush network table once, then saw it was still wrong, then I do it one more time, also Restart DNS resolver and restart the pi. After that, hostname stop showing up no matter what I do afterward.
Tried everything from flush, check/uncheck the Conditional Forwarding option again, even reset the pi with pihole -r
, but nothing seems to work, it still showing IP without hostname for some reason.
REV_SERVER
variables all are enable in the conf file, tried ping my-phone.local
from pihole works fine. I notice I was having the flag CONDITIONAL_FORWARDING=false
before reset though. Another thing that I notice is that most of the local PTR
request forward correctly to the router ip but return N/A, not sure if is expected (after some more google search then it seems that it should be returning DOMAIN reply instead...probably something wrong here).
Here is dig if it can help debugging:
dig -x 192.168.0.101 @192.168.0.1
; <<>> DiG 9.11.5-P4-5.1+deb10u3-Raspbian <<>> -x 192.168.0.101 @192.168.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 17789
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;101.0.168.192.in-addr.arpa. IN PTR
;; Query time: 27 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Mar 12 14:28:05 +07 2021
;; MSG SIZE rcvd: 55
dig -x 192.168.0.101 @127.0.0.1
; <<>> DiG 9.11.5-P4-5.1+deb10u3-Raspbian <<>> -x 192.168.0.101 @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 6563
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;101.0.168.192.in-addr.arpa. IN PTR
;; Query time: 27 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Mar 12 14:26:31 +07 2021
;; MSG SIZE rcvd: 55
*Edit: Fing app seems to works fine and can resolve hostname, but tried with nslookup
and dig
both can't seems to able to do the same...
Debug Token:
9msi0uesdn
Many thanks!