Problem with Beta 5.0:
Fresh install on pihole installed as latest then upgraded to 5.0
All devices show as IP and no hostnames
`
How do you have Pi-hole configured to find the hostnames?
Hi Dan
Correct me if I'm missing something. But I thought if the Pi-hole was also the DHCP server you didn't have to do much else?
I see hostnames in the DHCP leases section, but not in the Network section
This is correct so we have to check what is going wrong.
Please post the result of
dig -x 192.168.1.14 @127.0.0.1
dig -x 192.168.1.22 @127.0.0.1
run on your Pi-hole.
Here is the output:
pi@raspberrypi:~ $ dig -x 192.168.1.14 @127.0.0.1 ; <<>> DiG 9.10.3-P4-Raspbian <<>> -x 192.168.1.14 @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 12446 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 512 ;; QUESTION SECTION: ;14.1.168.192.in-addr.arpa. IN PTR ;; Query time: 36 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Apr 08 10:25:35 BST 2020 ;; MSG SIZE rcvd: 54 pi@raspberrypi:~ $ dig -x 192.168.1.22 @127.0.0.1 ; <<>> DiG 9.10.3-P4-Raspbian <<>> -x 192.168.1.22 @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38459 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;22.1.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 22.1.168.192.in-addr.arpa. 2 IN PTR osmc.lan. ;; Query time: 3 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Apr 08 10:25:45 BST 2020 ;; MSG SIZE rcvd: 76
Okay, so at least 192.168.1.22
should have a host name (osmc.lan
). Does the host name appear on your Pi-hole dashboard (http://pi.hole/admin) or are there also only IP addresses in the clients table?
Everywhere except the DHCP page shows as IP address, Network Page, Top Clients etc for example x.22 is second on the top clients list, but shows are x.22 not as osmc
Please add
DEBUG_API=true
to /etc/pihole/pihole-FTL.conf
(create if it does not exist, you may need sudo
-powers) and run
pihole restartdns
After a while, you should see lines like Trying to resolve XYZ
in /var/log/pihole-FTL.log
.
How do they look like exactly?
As below
pi@raspberrypi:~ $ tail /var/log/pihole-FTL.log [2020-04-08 13:49:00.870 31628] Trying to resolve 192.168.1.112 [2020-04-08 13:49:00.896 31628] Trying to resolve 192.168.1.48 [2020-04-08 13:49:00.921 31628] Trying to resolve 192.168.1.86 [2020-04-08 13:49:00.946 31628] Trying to resolve 192.168.1.142 [2020-04-08 13:49:00.972 31628] Trying to resolve 192.168.1.20 [2020-04-08 13:49:00.998 31628] Trying to resolve 192.168.1.26 [2020-04-08 13:49:01.024 31628] 33 / 33 client host names resolved [2020-04-08 13:49:01.024 31628] Trying to resolve 8.8.4.4 [2020-04-08 13:49:01.048 31628] Trying to resolve 8.8.8.8 [2020-04-08 13:49:01.072 31628] 2 / 2 upstream server host names resolved
Thanks, please try
pihole checkout ftl tweak/more_resolver_debugging
and check again for these lines (there should be more output now).
Assuming you misesed a checkout from that command:
pi@raspberrypi:~ $ tail -n 250 /var/log/pihole-FTL.log [2020-04-08 15:55:01.509 1363] -> Forwarded DNS queries: 39298 [2020-04-08 15:55:01.509 1363] -> Blocked DNS queries: 31748 [2020-04-08 15:55:01.509 1363] -> Unknown DNS queries: 0 [2020-04-08 15:55:01.509 1363] -> Unique domains: 4650 [2020-04-08 15:55:01.509 1363] -> Unique clients: 33 [2020-04-08 15:55:01.509 1363] -> Known forward destinations: 2 [2020-04-08 15:55:01.509 1363] Successfully accessed setupVars.conf [2020-04-08 15:55:01.509 1363] DEBUG: argv[0] = "" [2020-04-08 15:55:01.509 1363] DEBUG: argv[1] = "-k" [2020-04-08 15:55:01.514 1365] PID of FTL process: 1365 [2020-04-08 15:55:01.515 1365] Listening on port 4711 for incoming IPv4 telnet connections [2020-04-08 15:55:01.515 1365] Listening on port 4711 for incoming IPv6 telnet connections [2020-04-08 15:55:01.515 1365] Listening on Unix socket [2020-04-08 15:55:01.516 1365] Reloading DNS cache [2020-04-08 15:55:01.516 1365] Blocking status is enabled [2020-04-08 15:55:01.517 1365] ***************************** [2020-04-08 15:55:01.517 1365] * Debugging enabled * [2020-04-08 15:55:01.517 1365] * DEBUG_DATABASE NO * [2020-04-08 15:55:01.517 1365] * DEBUG_NETWORKING NO * [2020-04-08 15:55:01.517 1365] * DEBUG_LOCKS NO * [2020-04-08 15:55:01.517 1365] * DEBUG_QUERIES NO * [2020-04-08 15:55:01.517 1365] * DEBUG_FLAGS NO * [2020-04-08 15:55:01.517 1365] * DEBUG_SHMEM NO * [2020-04-08 15:55:01.517 1365] * DEBUG_GC NO * [2020-04-08 15:55:01.517 1365] * DEBUG_ARP NO * [2020-04-08 15:55:01.517 1365] * DEBUG_REGEX NO * [2020-04-08 15:55:01.517 1365] * DEBUG_API YES * [2020-04-08 15:55:01.517 1365] * DEBUG_OVERTIME NO * [2020-04-08 15:55:01.517 1365] * DEBUG_EXTBLOCKED NO * [2020-04-08 15:55:01.517 1365] * DEBUG_CAPS NO * [2020-04-08 15:55:01.517 1365] * DEBUG_DNSMASQ_LINES NO * [2020-04-08 15:55:01.517 1365] * DEBUG_VECTORS NO * [2020-04-08 15:55:01.517 1365] ***************************** [2020-04-08 15:55:01.521 1365] INFO: No regex blacklist entries found [2020-04-08 15:55:01.548 1365] Compiled 1 whitelist and 0 blacklist regex filters in 27.9 msec [2020-04-08 15:55:11.764 1365] Resizing "/FTL-strings" from 90112 to 94208 [2020-04-08 15:56:00.077 1365] Trying to resolve 192.168.1.154 [2020-04-08 15:56:00.078 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.078 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.078 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.078 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.104 1365] ---> "" (N/A) [2020-04-08 15:56:00.177 1365] Trying to resolve 192.168.1.240 [2020-04-08 15:56:00.178 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.178 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.178 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.178 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.201 1365] ---> "" (N/A) [2020-04-08 15:56:00.228 1365] Trying to resolve 192.168.1.22 [2020-04-08 15:56:00.228 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.229 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.229 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.229 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.253 1365] ---> "" (N/A) [2020-04-08 15:56:00.255 1365] Trying to resolve 192.168.1.219 [2020-04-08 15:56:00.255 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.255 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.255 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.255 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.279 1365] ---> "" (N/A) [2020-04-08 15:56:00.280 1365] Trying to resolve 192.168.1.133 [2020-04-08 15:56:00.280 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.280 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.281 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.281 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.304 1365] ---> "" (N/A) [2020-04-08 15:56:00.305 1365] Trying to resolve 192.168.1.217 [2020-04-08 15:56:00.306 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.306 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.306 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.306 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.330 1365] ---> "" (N/A) [2020-04-08 15:56:00.332 1365] Trying to resolve 192.168.1.165 [2020-04-08 15:56:00.332 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.332 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.332 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.332 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.355 1365] ---> "" (N/A) [2020-04-08 15:56:00.357 1365] Trying to resolve 192.168.1.104 [2020-04-08 15:56:00.357 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.357 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.357 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.357 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.381 1365] ---> "" (N/A) [2020-04-08 15:56:00.383 1365] Trying to resolve 192.168.1.14 [2020-04-08 15:56:00.383 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.383 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.383 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.383 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.406 1365] ---> "" (N/A) [2020-04-08 15:56:00.408 1365] Trying to resolve 192.168.1.239 [2020-04-08 15:56:00.408 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.408 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.408 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.408 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.432 1365] ---> "" (N/A) [2020-04-08 15:56:00.434 1365] Trying to resolve 192.168.1.171 [2020-04-08 15:56:00.434 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.434 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.434 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.434 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.458 1365] ---> "" (N/A) [2020-04-08 15:56:00.460 1365] Trying to resolve 192.168.1.78 [2020-04-08 15:56:00.460 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.460 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.460 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.460 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.484 1365] ---> "" (N/A) [2020-04-08 15:56:00.486 1365] Trying to resolve 192.168.1.105 [2020-04-08 15:56:00.486 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.486 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.486 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.486 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.511 1365] ---> "" (N/A) [2020-04-08 15:56:00.513 1365] Trying to resolve 192.168.1.157 [2020-04-08 15:56:00.513 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.513 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.513 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.513 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.536 1365] ---> "" (N/A) [2020-04-08 15:56:00.538 1365] Trying to resolve 192.168.1.152 [2020-04-08 15:56:00.538 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.538 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.538 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.539 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.563 1365] ---> "" (N/A) [2020-04-08 15:56:00.565 1365] Trying to resolve 192.168.1.151 [2020-04-08 15:56:00.565 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.565 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.565 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.565 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.589 1365] ---> "" (N/A) [2020-04-08 15:56:00.591 1365] Trying to resolve 192.168.1.143 [2020-04-08 15:56:00.591 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.591 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.591 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.591 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.615 1365] ---> "" (N/A) [2020-04-08 15:56:00.616 1365] Trying to resolve 192.168.1.161 [2020-04-08 15:56:00.616 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.616 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.617 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.617 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.641 1365] ---> "" (N/A) [2020-04-08 15:56:00.642 1365] Trying to resolve 192.168.1.153 [2020-04-08 15:56:00.643 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.643 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.643 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.643 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.666 1365] ---> "" (N/A) [2020-04-08 15:56:00.668 1365] Trying to resolve 192.168.1.248 [2020-04-08 15:56:00.668 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.668 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.668 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.668 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.692 1365] ---> "" (N/A) [2020-04-08 15:56:00.693 1365] Trying to resolve 192.168.1.18 [2020-04-08 15:56:00.694 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.694 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.694 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.694 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.718 1365] ---> "" (N/A) [2020-04-08 15:56:00.720 1365] Trying to resolve 192.168.1.46 [2020-04-08 15:56:00.720 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.720 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.720 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.720 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.744 1365] ---> "" (N/A) [2020-04-08 15:56:00.746 1365] Trying to resolve 192.168.1.144 [2020-04-08 15:56:00.746 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.746 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.746 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.746 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.770 1365] ---> "" (N/A) [2020-04-08 15:56:00.771 1365] Trying to resolve 192.168.1.156 [2020-04-08 15:56:00.771 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.771 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.771 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.772 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.796 1365] ---> "" (N/A) [2020-04-08 15:56:00.797 1365] Trying to resolve 192.168.1.238 [2020-04-08 15:56:00.797 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.797 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.797 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.798 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.821 1365] ---> "" (N/A) [2020-04-08 15:56:00.823 1365] Trying to resolve 127.0.0.1 [2020-04-08 15:56:00.823 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.823 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.823 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.823 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.823 1365] ---> "localhost" (localhost) [2020-04-08 15:56:00.823 1365] Trying to resolve 192.168.1.249 [2020-04-08 15:56:00.823 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.823 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.823 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.823 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.847 1365] ---> "" (N/A) [2020-04-08 15:56:00.849 1365] Trying to resolve 192.168.1.112 [2020-04-08 15:56:00.849 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.849 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.849 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.849 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.873 1365] ---> "" (N/A) [2020-04-08 15:56:00.875 1365] Trying to resolve 192.168.1.48 [2020-04-08 15:56:00.875 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.875 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.875 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.875 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.899 1365] ---> "" (N/A) [2020-04-08 15:56:00.901 1365] Trying to resolve 192.168.1.86 [2020-04-08 15:56:00.901 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.901 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.901 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.901 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.926 1365] ---> "" (N/A) [2020-04-08 15:56:00.928 1365] Trying to resolve 192.168.1.142 [2020-04-08 15:56:00.928 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.928 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.928 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.928 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.952 1365] ---> "" (N/A) [2020-04-08 15:56:00.954 1365] Trying to resolve 192.168.1.20 [2020-04-08 15:56:00.954 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.954 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.955 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.955 1365] 2: 127.0.0.1 [2020-04-08 15:56:00.978 1365] ---> "" (N/A) [2020-04-08 15:56:00.980 1365] Trying to resolve 192.168.1.26 [2020-04-08 15:56:00.980 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:00.980 1365] 0: 8.8.8.8 [2020-04-08 15:56:00.980 1365] 1: 0.0.0.0 [2020-04-08 15:56:00.980 1365] 2: 127.0.0.1 [2020-04-08 15:56:01.004 1365] ---> "" (N/A) [2020-04-08 15:56:01.006 1365] 33 / 33 client host names resolved [2020-04-08 15:56:01.007 1365] Trying to resolve 8.8.8.8 [2020-04-08 15:56:01.007 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:01.007 1365] 0: 8.8.8.8 [2020-04-08 15:56:01.007 1365] 1: 0.0.0.0 [2020-04-08 15:56:01.007 1365] 2: 127.0.0.1 [2020-04-08 15:56:01.031 1365] ---> "dns.google" (dns.google) [2020-04-08 15:56:01.031 1365] Trying to resolve 8.8.4.4 [2020-04-08 15:56:01.032 1365] Using resolvers (added FTL as last resolver): [2020-04-08 15:56:01.032 1365] 0: 8.8.8.8 [2020-04-08 15:56:01.032 1365] 1: 0.0.0.0 [2020-04-08 15:56:01.032 1365] 2: 127.0.0.1 [2020-04-08 15:56:01.055 1365] ---> "dns.google" (dns.google) [2020-04-08 15:56:01.055 1365] 2 / 2 upstream server host names resolved [2020-04-08 15:57:00.131 1365] 0 / 33 client host names resolved [2020-04-08 15:57:00.131 1365] 0 / 2 upstream server host names resolved pi@raspberrypi:~ $
Interestingly, it seems to work from other machines on the network
C:\Users\REDACTED>ipconfig /flushdns Windows IP Configuration Successfully flushed the DNS Resolver Cache. C:\Users\REDACTED>ping osmc Pinging osmc.lan [192.168.1.22] with 32 bytes of data: Reply from 192.168.1.22: bytes=32 time<1ms TTL=64 Reply from 192.168.1.22: bytes=32 time<1ms TTL=64 Reply from 192.168.1.22: bytes=32 time<1ms TTL=64 Reply from 192.168.1.22: bytes=32 time<1ms TTL=64 Ping statistics for 192.168.1.22: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
Could you try again with
FORCE_FIRST_RESOLVER=true
in /etc/pihole/pihole-FTL.conf
+ pihole restartdns
?
pi@raspberrypi:~ $ sudo nano /etc/pihole/pihole-FTL.conf pi@raspberrypi:~ $ pihole restartdns [✓] Restarting DNS server pi@raspberrypi:~ $ tail -n 250 /var/log/pihole-FTL.log [2020-04-09 08:27:57.439 6372] Resizing "/FTL-queries" from 4128768 to 4358144 [2020-04-09 08:27:57.485 6372] Resizing "/FTL-strings" from 77824 to 81920 [2020-04-09 08:27:57.565 6372] Resizing "/FTL-queries" from 4358144 to 4587520 [2020-04-09 08:27:57.623 6372] Resizing "/FTL-domains" from 65536 to 131072 [2020-04-09 08:27:57.681 6372] Resizing "/FTL-queries" from 4587520 to 4816896 [2020-04-09 08:27:57.709 6372] Resizing "/FTL-strings" from 81920 to 86016 [2020-04-09 08:27:57.804 6372] Resizing "/FTL-queries" from 4816896 to 5046272 [2020-04-09 08:27:57.924 6372] Resizing "/FTL-strings" from 86016 to 90112 [2020-04-09 08:27:57.931 6372] Resizing "/FTL-queries" from 5046272 to 5275648 [2020-04-09 08:27:58.045 6372] Resizing "/FTL-queries" from 5275648 to 5505024 [2020-04-09 08:27:58.116 6372] Resizing "/FTL-strings" from 90112 to 94208 [2020-04-09 08:27:58.143 6372] Resizing "/FTL-queries" from 5505024 to 5734400 [2020-04-09 08:27:58.161 6372] Imported 99088 queries from the long-term databas e [2020-04-09 08:27:58.162 6372] -> Total DNS queries: 99088 [2020-04-09 08:27:58.162 6372] -> Cached DNS queries: 21393 [2020-04-09 08:27:58.162 6372] -> Forwarded DNS queries: 48460 [2020-04-09 08:27:58.162 6372] -> Blocked DNS queries: 29235 [2020-04-09 08:27:58.162 6372] -> Unknown DNS queries: 0 [2020-04-09 08:27:58.162 6372] -> Unique domains: 4772 [2020-04-09 08:27:58.162 6372] -> Unique clients: 31 [2020-04-09 08:27:58.162 6372] -> Known forward destinations: 2 [2020-04-09 08:27:58.162 6372] Successfully accessed setupVars.conf [2020-04-09 08:27:58.162 6372] DEBUG: argv[0] = "" [2020-04-09 08:27:58.162 6372] DEBUG: argv[1] = "-k" [2020-04-09 08:27:58.174 6374] PID of FTL process: 6374 [2020-04-09 08:27:58.174 6374] Listening on port 4711 for incoming IPv4 telnet c onnections [2020-04-09 08:27:58.175 6374] Listening on port 4711 for incoming IPv6 telnet c onnections [2020-04-09 08:27:58.175 6374] Listening on Unix socket [2020-04-09 08:27:58.176 6374] Reloading DNS cache [2020-04-09 08:27:58.176 6374] Blocking status is enabled [2020-04-09 08:27:58.176 6374] ***************************** [2020-04-09 08:27:58.176 6374] * Debugging enabled * [2020-04-09 08:27:58.176 6374] * DEBUG_DATABASE NO * [2020-04-09 08:27:58.176 6374] * DEBUG_NETWORKING NO * [2020-04-09 08:27:58.176 6374] * DEBUG_LOCKS NO * [2020-04-09 08:27:58.176 6374] * DEBUG_QUERIES NO * [2020-04-09 08:27:58.176 6374] * DEBUG_FLAGS NO * [2020-04-09 08:27:58.176 6374] * DEBUG_SHMEM NO * [2020-04-09 08:27:58.177 6374] * DEBUG_GC NO * [2020-04-09 08:27:58.177 6374] * DEBUG_ARP NO * [2020-04-09 08:27:58.177 6374] * DEBUG_REGEX NO * [2020-04-09 08:27:58.177 6374] * DEBUG_API YES * [2020-04-09 08:27:58.177 6374] * DEBUG_OVERTIME NO * [2020-04-09 08:27:58.177 6374] * DEBUG_EXTBLOCKED NO * [2020-04-09 08:27:58.177 6374] * DEBUG_CAPS NO * [2020-04-09 08:27:58.177 6374] * DEBUG_DNSMASQ_LINES NO * [2020-04-09 08:27:58.177 6374] * DEBUG_VECTORS NO * [2020-04-09 08:27:58.177 6374] ***************************** [2020-04-09 08:27:58.181 6374] INFO: No regex blacklist entries found [2020-04-09 08:27:58.205 6374] Compiled 1 whitelist and 0 blacklist regex filter s in 24.8 msec [2020-04-09 08:28:00.198 6374] Trying to resolve 192.168.1.240 [2020-04-09 08:28:00.198 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.198 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.198 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.198 6374] 2: 0.0.0.0 [2020-04-09 08:28:00.227 6374] ---> "" (N/A) [2020-04-09 08:28:00.229 6374] Trying to resolve 192.168.1.48 [2020-04-09 08:28:00.229 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.229 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.229 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.229 6374] 2: 0.0.0.0 [2020-04-09 08:28:00.258 6374] ---> "" (N/A) [2020-04-09 08:28:00.260 6374] Trying to resolve 192.168.1.133 [2020-04-09 08:28:00.260 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.260 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.260 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.260 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.284 6374] ---> "" (N/A) [2020-04-09 08:28:00.286 6374] Trying to resolve 192.168.1.157 [2020-04-09 08:28:00.286 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.286 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.287 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.287 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.310 6374] ---> "" (N/A) [2020-04-09 08:28:00.312 6374] Trying to resolve 192.168.1.22 [2020-04-09 08:28:00.312 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.312 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.312 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.312 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.335 6374] ---> "" (N/A) [2020-04-09 08:28:00.337 6374] Trying to resolve 192.168.1.219 [2020-04-09 08:28:00.337 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.337 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.337 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.338 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.361 6374] ---> "" (N/A) [2020-04-09 08:28:00.362 6374] Trying to resolve 192.168.1.104 [2020-04-09 08:28:00.363 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.363 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.363 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.363 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.386 6374] ---> "" (N/A) [2020-04-09 08:28:00.388 6374] Trying to resolve 192.168.1.14 [2020-04-09 08:28:00.388 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.388 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.388 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.388 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.412 6374] ---> "" (N/A) [2020-04-09 08:28:00.414 6374] Trying to resolve 192.168.1.105 [2020-04-09 08:28:00.414 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.414 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.415 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.415 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.438 6374] ---> "" (N/A) [2020-04-09 08:28:00.440 6374] Trying to resolve 192.168.1.26 [2020-04-09 08:28:00.440 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.440 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.441 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.441 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.464 6374] ---> "" (N/A) [2020-04-09 08:28:00.466 6374] Trying to resolve 192.168.1.165 [2020-04-09 08:28:00.466 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.466 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.466 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.466 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.489 6374] ---> "" (N/A) [2020-04-09 08:28:00.491 6374] Trying to resolve 192.168.1.171 [2020-04-09 08:28:00.491 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.491 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.492 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.492 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.515 6374] ---> "" (N/A) [2020-04-09 08:28:00.516 6374] Trying to resolve 192.168.1.78 [2020-04-09 08:28:00.517 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.517 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.517 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.517 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.541 6374] ---> "" (N/A) [2020-04-09 08:28:00.543 6374] Trying to resolve 192.168.1.154 [2020-04-09 08:28:00.543 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.543 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.543 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.543 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.567 6374] ---> "" (N/A) [2020-04-09 08:28:00.569 6374] Trying to resolve 192.168.1.217 [2020-04-09 08:28:00.569 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.569 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.569 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.569 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.593 6374] ---> "" (N/A) [2020-04-09 08:28:00.594 6374] Trying to resolve 192.168.1.86 [2020-04-09 08:28:00.595 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.595 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.595 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.595 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.619 6374] ---> "" (N/A) [2020-04-09 08:28:00.621 6374] Trying to resolve 192.168.1.151 [2020-04-09 08:28:00.621 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.621 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.621 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.621 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.645 6374] ---> "" (N/A) [2020-04-09 08:28:00.646 6374] Trying to resolve 192.168.1.152 [2020-04-09 08:28:00.647 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.647 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.647 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.647 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.671 6374] ---> "" (N/A) [2020-04-09 08:28:00.673 6374] Trying to resolve 192.168.1.143 [2020-04-09 08:28:00.673 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.673 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.674 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.674 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.697 6374] ---> "" (N/A) [2020-04-09 08:28:00.699 6374] Trying to resolve 192.168.1.144 [2020-04-09 08:28:00.699 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.699 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.699 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.699 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.723 6374] ---> "" (N/A) [2020-04-09 08:28:00.725 6374] Trying to resolve 192.168.1.161 [2020-04-09 08:28:00.725 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.725 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.725 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.725 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.749 6374] ---> "" (N/A) [2020-04-09 08:28:00.751 6374] Trying to resolve 192.168.1.239 [2020-04-09 08:28:00.751 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.751 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.751 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.751 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.775 6374] ---> "" (N/A) [2020-04-09 08:28:00.777 6374] Trying to resolve 192.168.1.156 [2020-04-09 08:28:00.777 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.777 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.777 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.777 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.801 6374] ---> "" (N/A) [2020-04-09 08:28:00.802 6374] Trying to resolve 192.168.1.153 [2020-04-09 08:28:00.803 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.803 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.803 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.803 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.826 6374] ---> "" (N/A) [2020-04-09 08:28:00.828 6374] Trying to resolve 192.168.1.238 [2020-04-09 08:28:00.828 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.828 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.828 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.828 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.852 6374] ---> "" (N/A) [2020-04-09 08:28:00.854 6374] Trying to resolve 192.168.1.112 [2020-04-09 08:28:00.854 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.854 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.854 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.854 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.877 6374] ---> "" (N/A) [2020-04-09 08:28:00.879 6374] Trying to resolve 192.168.1.20 [2020-04-09 08:28:00.879 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.879 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.879 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.879 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.903 6374] ---> "" (N/A) [2020-04-09 08:28:00.904 6374] Trying to resolve 127.0.0.1 [2020-04-09 08:28:00.904 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.905 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.905 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.905 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.905 6374] ---> "localhost" (localhost) [2020-04-09 08:28:00.905 6374] Trying to resolve 192.168.1.18 [2020-04-09 08:28:00.905 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.905 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.905 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.905 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.929 6374] ---> "" (N/A) [2020-04-09 08:28:00.931 6374] Trying to resolve 192.168.1.248 [2020-04-09 08:28:00.931 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.931 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.931 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.931 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.955 6374] ---> "" (N/A) [2020-04-09 08:28:00.956 6374] Trying to resolve 192.168.1.142 [2020-04-09 08:28:00.957 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.957 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.957 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.957 6374] 2: 127.0.0.1 [2020-04-09 08:28:00.980 6374] ---> "" (N/A) [2020-04-09 08:28:00.982 6374] 31 / 31 client host names resolved [2020-04-09 08:28:00.982 6374] Trying to resolve 8.8.8.8 [2020-04-09 08:28:00.982 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:00.982 6374] 0: 8.8.8.8 [2020-04-09 08:28:00.982 6374] 1: 127.0.0.1 [2020-04-09 08:28:00.983 6374] 2: 127.0.0.1 [2020-04-09 08:28:01.006 6374] ---> "dns.google" (dns.google) [2020-04-09 08:28:01.006 6374] Trying to resolve 8.8.4.4 [2020-04-09 08:28:01.006 6374] Using resolvers (added FTL as first resolver): [2020-04-09 08:28:01.006 6374] 0: 8.8.8.8 [2020-04-09 08:28:01.006 6374] 1: 127.0.0.1 [2020-04-09 08:28:01.007 6374] 2: 127.0.0.1 [2020-04-09 08:28:01.031 6374] ---> "dns.google" (dns.google) [2020-04-09 08:28:01.031 6374] 2 / 2 upstream server host names resolved pi@raspberrypi:~ $
Hmm, okay, next question: Have you, by any chance, made any changes to any file inside /etc/dnsmasq.d
so FTL maybe runs on a different different port?
I guess the answer is "No", especially because
worked before as well.
Please update and test another time, I made a small mistake, causing FTL to be added as the second, instead of the first, resolver for you. Let's see if this makes any difference...
No, No changes to /etc/dnsmasq.d
That seems to have done it
pi@raspberrypi:~ $ tail -n 250 /var/log/pihole-FTL.log [2020-04-09 09:16:00.713 9360] Using resolvers (added FTL as first resolver): [2020-04-09 09:16:00.713 9360] 0: 127.0.0.1 [2020-04-09 09:16:00.713 9360] 1: 0.0.0.0 [2020-04-09 09:16:00.713 9360] 2: 127.0.0.1 [2020-04-09 09:16:00.738 9360] ---> "" (N/A) [2020-04-09 09:16:00.739 9360] Trying to resolve 192.168.1.20 [2020-04-09 09:16:00.739 9360] Using resolvers (added FTL as first resolver): [2020-04-09 09:16:00.739 9360] 0: 127.0.0.1 [2020-04-09 09:16:00.739 9360] 1: 0.0.0.0 [2020-04-09 09:16:00.739 9360] 2: 127.0.0.1 [2020-04-09 09:16:00.741 9360] ---> "ring-758b10.lan" (Ring-758b10.lan) [2020-04-09 09:16:00.741 9360] Trying to resolve 127.0.0.1 [2020-04-09 09:16:00.741 9360] Using resolvers (added FTL as first resolver): [2020-04-09 09:16:00.741 9360] 0: 127.0.0.1 [2020-04-09 09:16:00.741 9360] 1: 0.0.0.0 [2020-04-09 09:16:00.741 9360] 2: 127.0.0.1 [2020-04-09 09:16:00.741 9360] ---> "localhost" (localhost) [2020-04-09 09:16:00.741 9360] Trying to resolve 192.168.1.18 [2020-04-09 09:16:00.741 9360] Using resolvers (added FTL as first resolver): [2020-04-09 09:16:00.741 9360] 0: 127.0.0.1 [2020-04-09 09:16:00.741 9360] 1: 0.0.0.0 [2020-04-09 09:16:00.741 9360] 2: 127.0.0.1 [2020-04-09 09:16:00.744 9360] ---> "tizen.lan" (TIZEN.lan)
Now I have hostnames showing in my network page too
Well, this is strange, but then we know how to do it.
As there is now much more debugging output, the internal resolver got it's own setting, please remove
DEBUG_API=true
FORCE_FIRST_RESOLVER=true
and insert instead
DEBUG_RESOLVER=true
Then switch to
pihole checkout ftl tweak/resolver_try_FTL_first_then_others
and check if names appear on the dashboard (they should...).
edit Building the binaries takes some time, if you get a checkout error, please try again maybe 5 minutes later.
I still have hostnames on the web page, but that seems to have broken it according to the log file.
Its seems to now just be trying 8.8.8.8 for resolution
[2020-04-09 11:22:00.282 16905] 0: 8.8.8.8 [2020-04-09 11:22:00.283 16905] 1: 0.0.0.0 [2020-04-09 11:22:00.283 16905] 2: 0.0.0.0 [2020-04-09 11:22:00.283 16905] ---> "" (N/A) [2020-04-09 11:22:00.285 16905] Trying to resolve 192.168.1.22 [2020-04-09 11:22:00.309 16905] No host name known to FTL, trying other servers as mandated by resolv.co nf: