Systemd-resolved
lastmod 2026-02-05created 2020-07-1817 edits
systemd-resolved is a systemd service that provides network name resolution to local applications via a D-Bus interface, the resolve NSS service (nss-resolve(8)), and a local DNS stub listener on 127.0.0.53. See systemd-resolved(8) for the usage.
Start/Enable
DNS query structure
DNS_query_order.png
Related files
-
/etc/host.conf -
/etc/hosts.allow -
/etc/hosts.deny -
/etc/hosts -
/lib/systemd/system/systemd-resolved.service
/etc/resolv.conf
- IT_Dexter :: Linux - DNS server configuration files (/etc/host.conf, /etc/resolv.conf)
- /etc/host.conf : Naver Blog
This file determines where to look up the address when finding the IP address for a given domain. The file looks like this:
-
order hosts,bind - Specifies the order of the services responsible for resolving IP addresses.
-
multi on - A configuration option that allows the
/etc/hostsfile to have multiple IP addresses (multiple ethN interfaces). A host with more than one IP address is called Multihomed, because having multiple IP addresses usually means the host has that many network interfaces.
/etc/systemd/resolved.conf
- resolved.conf
- Changing DNS with systemd-resolved | Enovision Notes
- linux - How to configure systemd-resolved and systemd-networkd to use local DNS server for resolving local domains and remote DNS server for remote domains? - Unix & Linux Stack Exchange
These configuration files control local DNS and LLMNR name resolution.
127.0.0.53
systemd-resolved runs an internal DNS server at 127.0.0.53 and uses it to resolve and cache domain names.
Setting DNS addresses manually
- Several methods are summarized in Domain Name System#Setting DNS addresses manually.
Edit the file:
Edit the settings
Restart:
Check the settings:
systemd-resolved vs dnsmasq
- Thoughts on systemd-resolved vs. dnsmasq? : r/archlinux
- [Recommended] The Sisyphean Task Of DNS Client Config on Linux
- Anatomy of a Linux DNS Lookup – Part I – zwischenzugs
Resolving conflicts with Dnsmasq
See Dnsmasq#Resolving conflicts with systemd-resolved.
See also
Favorite site
-
systemd-resolved - ArchWiki - systemd-resolved - ArchWiki
- Using systemd-resolved
- Networking managed by systemd: DNS, systemd-resolve
- A really light understanding of Ubuntu DNS resolve "systemd-resolved" : Naver Blog
Pages that link here