Differences between revisions 3 and 4
Revision 3 as of 2023-01-08 22:45:15
Size: 1716
Comment:
Revision 4 as of 2023-06-22 20:07:51
Size: 1716
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
The project also includes an [[Linux/DNS#Name_Service_Switch|NSS plugin]] that re-implements most of the name resolution stack (''including'' reading the [[Linux/hosts|hosts]] file). The project also includes an [[Linux/DNS#Name_Service_Switch|NSS plugin]] that re-implements most of the name resolution stack (''including'' reading the [[Linux/Hosts|hosts]] file).

Systemd Resolved

A component of the systemd project. The corresponding unit file is systemd-resolved.service.


Usage

systemd-resolved(8) is a daemon that supports DNS, mDNS, LLMNR, etc., lookups.

Name Service Switch

The project also includes an NSS plugin that re-implements most of the name resolution stack (including reading the hosts file).

The recommended configuration of /etc/nsswitch.conf:

hosts: mymachines resolve [!UNAVAIL=return] myhostname files dns

Resolver

The service also includes a stub resolver on 127.0.0.53:53 with the full feature set of the local resolver, and a stub resolver on 127.0.0.54:53 with a limited resolver in proxy mode. An example of that limited resolver is that DNSSEC will not be validated.

The service also creates a dummy resolver file, which just points to the aforementioned stub resolver. The recommendation is to link the system resolver file to this dummy file.

ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

On the other hand, to disable the stub listener, edit /etc/systemd/resolved.conf as follows:

DNSStubListener=no

ResolvConf

systemd-resolvconf(8) is a compatibility layer between systemd-resolved(8) and the resolvconf API. However:

  • in many cases, it is not a compatible compatibility layer

  • it is dependent on systemd-resolved(8)

As such, services should be configured to interface with systemd-resolved(8) directly rather than systemd-resolvconf(8).


CategoryRicottone

Linux/SystemdResolved (last edited 2023-06-22 20:09:56 by DominicRicottone)