1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00
systemd/tmpfiles.d
Lennart Poettering b30bf55d5c resolved: respond to local resolver requests on 127.0.0.53:53
In order to improve compatibility with local clients that speak DNS directly
(and do not use NSS or our bus API) listen locally on 127.0.0.53:53 and process
any queries made that way.

Note that resolved does not implement a full DNS server on this port, but
simply enough to allow normal, local clients to resolve RRs through resolved.
Specifically it does not implement queries without the RD bit set (these are
requests where recursive lookups are explicitly disabled), and neither queries
with DNSSEC DO set in combination with DNSSEC CD (i.e. DNSSEC lookups with
validation turned off). It also refuses zone transfers and obsolete RR types.
All lookups done this way will be rejected with a clean error code, so that the
client side can repeat the query with a reduced feature set.

The code will set the DNSSEC AD flag however, depending on whether the data
resolved has been validated (or comes from a local, trusted source).

Lookups made via this mechanisms are propagated to LLMNR and mDNS as necessary,
but this is only partially useful as DNS packets cannot carry IP scope data
(i.e. the ifindex), and hence link-local addresses returned cannot be used
properly (and given that LLMNR/mDNS are mostly about link-local communication
this is quite a limitation). Also, given that DNS tends to use IDNA for
non-ASCII names, while LLMNR/mDNS uses UTF-8 lookups cannot be mapped 1:1.

In general this should improve compatibility with clients bypassing NSS but
it is highly recommended for clients to instead use NSS or our native bus API.

This patch also beefs up the DnsStream logic, as it reuses the code for local
TCP listening. DnsStream now provides proper reference counting for its
objects.

In order to avoid feedback loops resolved will no silently ignore 127.0.0.53
specified as DNS server when reading configuration.

resolved listens on 127.0.0.53:53 instead of 127.0.0.1:53 in order to leave
the latter free for local, external DNS servers or forwarders.

This also changes the "etc.conf" tmpfiles snippet to create a symlink from
/etc/resolv.conf to /usr/lib/systemd/resolv.conf by default, thus making this
stub the default mode of operation if /etc is not populated.
2016-06-21 14:15:23 +02:00
..
.gitignore build-sys: configure the list of system users, files and directories 2014-11-30 23:50:19 -05:00
etc.conf.m4 resolved: respond to local resolver requests on 127.0.0.53:53 2016-06-21 14:15:23 +02:00
home.conf tmpfiles.d: change all subvolumes to use quota 2015-10-22 01:59:25 +02:00
journal-nocow.conf tmpfiles: Add +C attrib to the journal files directories 2015-04-13 16:37:52 +02:00
legacy.conf tmpfiles: drop /run/lock/lockdev 2016-02-01 12:16:24 +01:00
Makefile journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
systemd-nologin.conf tmpfiles: there's no systemd-forbid-user-logins.service service 2015-04-21 17:43:55 +02:00
systemd-nspawn.conf tmpfiles.d: change all subvolumes to use quota 2015-10-22 01:59:25 +02:00
systemd-remote.conf journal-remote: change owner of /var/log/journal/remote and create /var/lib/systemd/journal-upload 2016-01-15 15:19:52 +09:00
systemd.conf.m4 tmpfiles: don't set the x bit for volatile system journal when ACL support is enabled (#3079) 2016-05-03 19:29:11 -04:00
tmp.conf tmpfiles.d: change all subvolumes to use quota 2015-10-22 01:59:25 +02:00
var.conf tmpfiles.d: change all subvolumes to use quota 2015-10-22 01:59:25 +02:00
x11.conf tmpfiles: introduce the concept of unsafe operations 2013-12-24 15:48:06 -05:00