Differences between revisions 1 and 2
Revision 1 as of 2022-09-24 02:53:37
Size: 1335
Comment:
Revision 2 as of 2023-01-08 22:21:42
Size: 1332
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
A component of the [[Linux/Systemd|systemd]] project. The corresponding service file is `systemd-resolved.service`. A component of the [[Linux/Systemd|systemd]] project. The corresponding unit file is `systemd-resolved.service`.

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


CategoryRicottone

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