Hostnames not being resolved

Expected Behaviour:

I expected to see host name resolution after applying the configuration proposed on this help page: Fritz!Box (EN) - Pi-hole documentation .

Actual Behaviour:

Hostnames are not resolved

Debug Token:

https://tricorder.pi-hole.net/RzbPTPDc/

for fritz + pihole hostnames, conditional forwarding only helps if two things match what the fritz is actually using.

check:

  • Settings -> DNS -> Conditional forwarding: router IP is the fritz LAN IP, and the local domain name is exactly what the fritz shows under Home Network -> Network -> Network Settings (often fritz.box, sometimes something custom)
  • clients are really using the pihole as DNS (not the fritz still answering first)
  • under DNS, reverse server for the LAN range is pointed at the fritz too if you care about PTR names

after changing that, flush the pihole cache (pihole restartdns or restart FTL) and recheck a client with nslookup some-hostname. if the debug token still shows CF off or the wrong domain, that is usually why the Network table stays on IPs only.

Thank you for your contribution. Unfortunately, that did not fix the issue.

The Fritz Box has been configured as follows:

  • Internet>Account Information>DNS Server: DNSv4 Server is 192.168.1.7 both for preferred and alternative DNSv4 server
  • Home Network>Network>Network Settings>Advanced Network Settings>IPv4: in DHCP section, local DNS server is 192.168.1.7
  • I tried both pihole networkflush and pihole reloaddns commands, below is the result for the nslookup command:
sharedbits@pihole:~ $ nslookup my_hostname
Server:		192.168.1.7
Address:	192.168.1.7#53

Non-authoritative answer:
Name:	my_hostname.fritz.box
Address: 192.168.1.110
Name:	my_hostname.fritz.box
Address: fdfa:5b8a:eee9:0:7139:aa85:4ad3:388c
Name:	my_hostname.fritz.box
Address: fdfa:5b8a:eee9:0:aedf:175b:c99a:935a

Debug token states:

revServers = [
"true,192.168.1.0/24,192.168.1.254,fritz.box"
] ### CHANGED, default = [ ]
[dns.domain]
name = "lan"
local = true

I believe this is correct as well.

Do you have any additional idea?

ah wait looking at that nslookup you posted, hostname resolution is actually working. my_hostname.fritz.box is answering from 192.168.1.7.

what usually looks "broken" after that is the Network overview still showing bare IPs. that table is picky about the local domain name matching.

you've got revServers on fritz.box, but dns.domain.name is still "lan". try setting dns.domain.name to fritz.box (same string as the CF domain), restart FTL, then refresh Network. for me the Overview only starts showing names once those two match.

if you mainly care about nslookup/ping by name, you're already good. the Network page is the laggy part.

Maybe useful to know :

Sometimes it takes a short period for the hostnames to appear correctly!

I have experienced this the last time I was adding a lot of hostnames at the same time in the Local DNS Records settings :slight_smile: