FloFaber.com

Systemd-Resolved not resolving .local domain

Just a short one this time.

resolved does not forward DNS queries for .local domains to your DNS Server, which makes perfect sense to be fair, but what if you want them to be forwarded?

In this case you ned to edit /etc/systemd/resolved.conf as follows:

[Resolve]
Domains=mydomain.local

or just don't use domains ending with .local. It's a terrible idea and a bad practice as well.


The best thing to do would be to use your own domain and dedicate a subdomain for your internal IPs like lan.mydomain.com. Or if you really have to use another domain you can safely use one of these TLDs:

  • .corp
  • .home
  • .intranet
  • .internal
  • .lan
  • .private


https://isitdns.com/