DNS doesn't work for local devices.
-
The only way I'm able to browse to any of the devices on my network is to use the IP Address. For example, when I want to browse to Home Assistant, I have to enter 10.20.0.2:8123. If I enter http://homeassistant.local:8123, it just times out.
Here are screenshots of my DNS settings.
-
@doni49
The point is if your client device resolves the host name properly.So run nslookup or dig against homeassistant.local to verify its DNS resolution.
If you get the correct IP your browser might most probably use DoH. Then you need to disable it in the browser or take steps to avoid this on pfSense.
-
nslookup can't find it either.
C:\Users\LiveI>nslookup
Default Server: pfSense.home.arpa
Address: 10.1.1.1homeassistant.local
Server: pfSense.home.arpa
Address: 10.1.1.1*** pfSense.home.arpa can't find homeassistant.local: Non-existent domain
-
@doni49
I see. So its on your DNS.You're awaiting that the DHCP does the DNS entry.
Do you use KEA by an chance?
DNS entries are not supported by KEA yet. You can switch to ISC DHCP or add a DNS host override manually. -
@doni49 why would you think your fqdn for you homeassistant is homeassistant.local?
pfsense is clearly using home.arpa as it domain. So create a record for your homeassistant.home.arpa in host overrides, or setup a reservation for it so it always gets the same IP. And or register dhcp, but that last option is going to cause unbound to restart all the time.
.local is used my mdns, for that to resolver client would have to send out a mdns query to the local network, your homeA would have to be on the same local network and would have to respond itself - hey yeah that is my name.
-
Ok. That's unexpected. I went to Diagnostics > DNS Resolver, entered homeassistant (without .local) in the field and submitted.
It found it. So I tried browsing to homeassistant:8123. That put me through fine.
-
@doni49 that would be your seach suffix most like auto doing query for the domain your machine is using, ie what pfsense handed out via dhcp which would be home.arpa
-
Ok. Thanks. Every time I think I'm figuring things out, I find more to learn. :)
-
@doni49 said in DNS doesn't work for local devices.:
Every time I think I'm figuring things out, I find more to learn. :)
Yup that how it works ;) heheh welcome to life..
I learn something new multiple times a day ;)
-
Yep -- definitely not a complaint. I enjoy learning it all. In all the examples I've seen, .local was used after the hostname. The use of mDNS was never mentioned so I assumed .local was part of the base DNS configuration.
I started reading up on mDNS a few weeks ago -- I guess I haven't made it that far yet.