1 # This file is part of systemd.
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
9 Description=Network Name Resolution
10 Documentation=man:systemd-resolved.service(8)
11 Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
12 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
14 After=systemd-networkd.service network.target
15 Before=network-online.target nss-lookup.target
16 Wants=nss-lookup.target
22 ExecStart=!!@rootlibexecdir@/systemd-resolved
25 CapabilityBoundingSet=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
26 AmbientCapabilities=CAP_SETPCAP CAP_NET_RAW CAP_NET_BIND_SERVICE
31 ProtectControlGroups=yes
32 ProtectKernelTunables=yes
33 ProtectKernelModules=yes
34 MemoryDenyWriteExecute=yes
36 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
37 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
38 SystemCallArchitectures=native
40 RuntimeDirectory=systemd/resolve
41 RuntimeDirectoryPreserve=yes
44 WantedBy=multi-user.target
45 Alias=dbus-org.freedesktop.resolve1.service