No Hostnames - PI is DHCP Sever

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:

The log output has changed, the following example belongs together:

[2020-04-09 12:30:00.457 1509] Trying to resolve 127.0.0.2
[2020-04-09 12:30:00.472 1509] No host name known to FTL, trying other servers as mandated by resolv.conf:
[2020-04-09 12:30:00.472 1509]  0: 127.0.0.53
[2020-04-09 12:30:00.472 1509]  1: 0.0.0.0
[2020-04-09 12:30:00.472 1509]  2: 0.0.0.0
[2020-04-09 12:30:00.473 1509]  ---> "thinkpad-x1-carbon-3rd" (found externally)

Something found internally would look like:

[2020-04-09 12:35:00.346 2092] Trying to resolve 127.0.0.1
[2020-04-09 12:35:00.346 2092] Setting nameserver to 127.0.0.1:4711
[2020-04-09 12:35:00.347 2092]  ---> "localhost" (found internally)

I pushed another small change considering that network and host byte order are not always the same so deriving and setting the port the resolver is listening on might have failed. Please try again

For reference (for those interested):

Ports and addresses are always specified in calls to the socket functions using the network byte order convention. This convention is a method of sorting bytes that is independent of specific machine architectures. Host byte order, on the other hand, sorts bytes in the manner which is most natural to the host software and hardware. There are two common host byte order methods:

  • Little-endian byte ordering places the least significant byte first. This method is used in Intel microprocessors, for example.
  • Big-endian byte ordering places the most significant byte first. This method is used in IBM® z/Architecture® and S/390® mainframes and Motorola microprocessors, for example.

The network byte order is defined to always be big-endian, which may differ from the host byte order on a particular machine. Using network byte ordering for data exchanged between hosts allows hosts using different architectures to exchange address information without confusion because of byte ordering.
Source: IBM Knowledgecenter

Same problem here:

/etc/resolv.conf
nameserver 1.0.0.1
nameserver 127.0.0.1

When manually changing /etc/resolv.conf to (reverse order of nameservers)
nameserver 127.0.0.1
nameserver 1.0.0.1

and flushing and restarting pihole the hostnames do get resolved. "arp" command now also shows local hostnames

Seems that listing 127.0.0.1 (localhost) as first nameserver in /etc/resolv.conf is critical. However after every reboot /etc/resolv.conf gets overwritten...

Yeah, this is a bad thing. The problem is when 1.0.0.1 responds with "does not exist" (in contrast to "I don't know"), then the second server isn't even tried. This means the server at 1.0.0.1 is incorrectly configured resp. it thinks it is the only DNS server on the planet.

Please also try

with the original resolv.conf (how it would look like after a reboot). Even if this removes the names from arp, FTL tries to be more clever and still get the names.

Thanks, it works!

Latest output

pi@raspberrypi:~ $ tail -n 250 /var/log/pihole-FTL.log
[2020-04-09 12:44:00.231 23042] Setting nameservers back to default:
[2020-04-09 12:44:00.231 23042]  0: 8.8.8.8:53
[2020-04-09 12:44:00.231 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.231 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.231 23042] Trying to resolve 192.168.1.48
[2020-04-09 12:44:00.232 23042] Setting nameservers to:
[2020-04-09 12:44:00.232 23042]  0: 127.0.0.1:53
[2020-04-09 12:44:00.232 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.232 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.233 23042]  ---> "amazon-abf5cc92e.lan" (found internally)
[2020-04-09 12:44:00.233 23042] Setting nameservers back to default:
[2020-04-09 12:44:00.233 23042]  0: 8.8.8.8:53
[2020-04-09 12:44:00.233 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.233 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.233 23042] Trying to resolve 192.168.1.165
[2020-04-09 12:44:00.233 23042] Setting nameservers to:
[2020-04-09 12:44:00.233 23042]  0: 127.0.0.1:53
[2020-04-09 12:44:00.233 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.233 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.235 23042]  ---> "ringelite-68.lan" (found internally)
[2020-04-09 12:44:00.235 23042] Setting nameservers back to default:
[2020-04-09 12:44:00.235 23042]  0: 8.8.8.8:53
[2020-04-09 12:44:00.235 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.235 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.235 23042] Trying to resolve 192.168.1.105
[2020-04-09 12:44:00.236 23042] Setting nameservers to:
[2020-04-09 12:44:00.236 23042]  0: 127.0.0.1:53
[2020-04-09 12:44:00.236 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.236 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.237 23042]  ---> "ringelite-5c.lan" (found internally)
[2020-04-09 12:44:00.237 23042] Setting nameservers back to default:
[2020-04-09 12:44:00.237 23042]  0: 8.8.8.8:53
[2020-04-09 12:44:00.237 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.238 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.238 23042] Trying to resolve 192.168.1.78
[2020-04-09 12:44:00.238 23042] Setting nameservers to:
[2020-04-09 12:44:00.238 23042]  0: 127.0.0.1:53
[2020-04-09 12:44:00.238 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.238 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.239 23042]  ---> "amazon-a2a406aae.lan" (found internally)
[2020-04-09 12:44:00.240 23042] Setting nameservers back to default:
[2020-04-09 12:44:00.240 23042]  0: 8.8.8.8:53
[2020-04-09 12:44:00.240 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.240 23042]  2: 0.0.0.0:0
[2020-04-09 12:44:00.240 23042] Trying to resolve 192.168.1.157
[2020-04-09 12:44:00.240 23042] Setting nameservers to:
[2020-04-09 12:44:00.240 23042]  0: 127.0.0.1:53
[2020-04-09 12:44:00.240 23042]  1: 0.0.0.0:0
[2020-04-09 12:44:00.240 23042]  2: 0.0.0.0:0

Question remains why does Pihole configures 1.0.0.1 as nameserver and does not respect my system configured DNS? Would it not be more wise or elegant if pihole leaves /etc/resolv.conf in tact in stead of overwriting?

Other question IPv6 addresses aren't resolved , is that not supported ?

We don't overwrite /etc/resolv.conf. We used to do this previously but v5.0 stops this. Whatever is in this file is written there by your system.

It is supported, for instance

dig -x ::1 @127.0.0.1 +short
ip6-localhost.

Who "knows" about the hostnames and do they get resolved with a similar dig request?

Hi, my apologies. I judged too fast. IPv6 are resolving now ! Thanks.
When can I revert FTL to release/v5.0 branch?

When this change has been reviewed, approved and merged. I will write here so you will get notified. So far, this branch is identical with release/v5.0 so there is nothing you are currently missing.

Was something wrong with resolvconf, I re-installed it on my NanoPi NEO2 running DietPi (buster image):

rm /etc/resolv.conf
apt-mark auto resolvconf
G_AGA
G_AGI resolvconf
reboot

Now resolv.conf contains the static DNS servers I configured through dietpi-config menu.

The PR has been reviewed and merged. Please go back to the main branch using

pihole checkout ftl release/v5.0

Done

I assume I can drop these lines from the config

DEBUG_API=true
FORCE_FIRST_RESOLVER=true

Thank for your help