I’m unable to enter websites using DNS records set in my Pi-hole. I can connect using IP and this only happens on my EndeavourOS PC. I have tested it with on my phone and it works there, also tried different browsers, same result.
Example:
router.local is assigned to 192.168.0.1
entering 192.168.0.1 directs me to the router page
entering router.local gives “ERR_NAME_NOT_RESOLVED”
The tricky thing is:
running nslookup router.local
Server: 192.168.0.10
Address: 192.168.0.10#53
Name: router.local
Address: 192.168.0.1
So the computer does resolve the address, but doesn’t in the browser?
Another thing is, the pi.hole works fine.
My phone, PC, router and the machine with Pi-hole are all on the same subnet, so this has to be a problem with my computer.
#1 browsers usually have a build in list of valid top level domains, so everything else is considered a search term. In Firefox you can circumvent it by making it a fully qualified top level domain by adding a dot to the address - no clue about other browsers.
#2 .local is esp. bad though, because that is somewhat even more special involving mDNS. A little bit more on it here. #1 for .local doesn’t work in FF either.
Are you committed to .local? I did a quick test with my pi-hole and .home or .lan works in FF with router.home. or router.lan..
router.home. does work in Firefox and LibreWolf, many thanks. It doesn’t however work in Brave and Vivaldi, the browser searches for it instead. Adding http(s):// fixes that, probably a chromium thing.
I may just go for a more obscure and not taken domain ending with .net or similar as that works on all of the browsers. Adding a dot at the end may feel weird for users.