Contents
How do I fix local DNS?
10 Ways to Troubleshoot DNS Resolution Issues
- Introduction.
- Check for network connectivity.
- Verify your DNS server IP addresses are correct and in order.
- Ping the IP address of the host you are trying to get to (if it is known)
- Find out what DNS server is being used with nslookup.
- Check your DNS suffix.
What is systemd-resolved for?
systemd-resolved is a system service that provides network name resolution to local applications. It implements a caching and validating DNS/DNSSEC stub resolver, as well as an LLMNR and MulticastDNS resolver and responder.
Why does systemd-resolved not query DNS server for local domain?
I got the same problem on Ubuntu 18.04, which also use systemd-resolved for DNS. Its default configuration does not resolve single-label hostnames or .local domain hostnames by DNS, but by LLMNR or mDNS respectively.
How to configure systemd resolved and systemd-resolved?
This way hostX.domainA.example will be resolved exclusively by our local DNS server. DNS servers which have route-only domains should only be used for the specified domains.
How to make local domain hostnames resolved by DNS?
To make local single-label hostnames or .local domain hostnames resolved by DNS, I enabled the 3rd of the “Four modes of handling /etc/resolv.conf” described in the man page for systemd-resolved.service: A similar answer was given here. And again, for the reasoning behind the default, see poettering’s reply in this bug report.
Where do I get domain names for systemd?
Ideally, when using DHCP protocol, local domain names should be obtained from DHCP server instead of being specified explicitly in configuration file of network interface above. See UseDomains= option. However there are still outstanding issues with this feature – see systemd-networkd DHCP search domains option issue.