i use .lan for local things and set up one entry for my pihole and one for my router.
i expect to be able to reach pihole under pihole.lan.
Raspbian GNU/Linux 11
Raspberry Pi 4 B
Actual Behaviour:
i can not reach my custom entries from any device on the network, and the pi.hole is only accesible from my android device. i have manually added the pi as the dns server in the adapter settings on my pc and on the android device the DNS is set correctly.
i have run nmap and this is what i got. the one additional device is my android device.
i have also enabled ipv6 in the DHCP of my raspberry and now i can reach pi.hole sometimes but not the other one
.
no it does not, but the adress is not assigned to any of my devices (pc, phone, router, pi) so i am not sure why the pi would give this one out as the ipv6 adress for DNS
Its most likely the address being advertised from your router via IPv6 router advertisement or short RA.
You could try check below reverse lookup (IP to name):
IPv6 RA needs to be configured in the router.
Check the router manual for this.
Or if not able to, you could opt to disable IPv6 support in the router settings for your LAN entirely.
i can not disable ipv6 on my router (isp...) but even when i disable ipv6 in my adapter settings on windows i cant reach the custom entry. pi.hole seems to work on my pc now.
At the same time check/tail the logs live with below:
pi@ph5b:~ $ pihole -t
[..]
Oct 2 13:01:52: query[A] nas.home.dehakkelaar.nl from 10.0.0.11
Oct 2 13:01:52: /etc/pihole/custom.list nas.home.dehakkelaar.nl is 10.0.0.3
And on that same client, run the nslookup without <DNS_SERVER_IP> to check if get same results eg:
i can reach the router by using the ip but not the custom adress
when i use the latter it just shows a white screen not a "website not reached" screen
same for my pihole.lan
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[AAAA] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: config kabelbox.lan is NODATA-IPv6
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:49: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:44:49: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:44:50: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:50: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:50: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:50: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:50: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:50: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:50: query[AAAA] pihole.lan from 192.168.0.139
Oct 2 13:44:50: config pihole.lan is NODATA-IPv6
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
Oct 2 13:44:51: query[A] pihole.lan from 192.168.0.139
Oct 2 13:44:51: /etc/pihole/custom.list pihole.lan is 192.168.0.98
same result when all popup/ad blockers are disabled.
i also tried it in my untouched edge installation which gave me a website not reached response
logs from the edge attempt:
Oct 2 13:48:36: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:36: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:36: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:36: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:36: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:36: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:36: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:36: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:36: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:36: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:37: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:37: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:37: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:37: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1
Oct 2 13:48:37: query[A] kabelbox.lan from 192.168.0.139
Oct 2 13:48:37: /etc/pihole/custom.list kabelbox.lan is 192.168.0.1