Questions tagged [systemd-resolved]

Use this tag for questions that relate directly to systemd's version of resolved. Do not use this tag for dnsmasq or regular resolved.

systemd-resolved is a DNS resolver bundled with systemd at installation. It's primary focus (like any DNS resolver) is to provide hostname resolution for a system.

systemd-resolved, in particular, supports technologies such as LLMNR and DNSSEC. It also caches DNS queries as needed in order to increase the speed of future lookups.

To end users, there should be zero practical difference between systemd-resolved and the currently-existing dnsmasq. For administrators, it will slightly change configurations and system setups, but it can be replaced with dnsmasq if needed for legacy purposes.

systemd-resolved reads /etc/resolv.conf, and will optionally provide it. According to FreeDesktop's page on systemd-resolved, there are three operation modes for /etc/resolv.conf management, usually involving symlinks.

systemd-resolved is due to hit Ubuntu in version 17.04.

180 questions
173
votes
5 answers

How to disable systemd-resolved in Ubuntu?

How can I disable systemd-resolved in Ubuntu 17.04? Disabling it with systemctl disable didn't work, the service seems to be restarted (by Networkmanager?)
Bastian Voigt
  • 4,836
  • 4
  • 13
  • 21
104
votes
11 answers

New alert keeps showing up: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001

I just installed a new Ubuntu Server 18.04. I set my hostname hostnamectl set-hostname ****.openbayou.biz and I set /etc/hosts: 127.0.0.1 localhost [ip address] ****.openbayou.biz hostname # The following lines are desirable for IPv6 capable…
97
votes
12 answers

DNS set to systemd's 127.0.0.53 - how to change permanently?

I've recently upgraded to 17.10. When I try to browse to a website, or ping a domain it fails saying the site cannot be resolved. network-admin shows the contents of /etc/resolv.conf to be nameserver: 127.0.0.53 If I change that to 8.8.8.8 or…
Terence Eden
  • 1,826
94
votes
7 answers

Ubuntu 18.04 no DNS resolution when connected to OpenVPN

When I connect to a VPN network through Gnome Network-manager I lose DNS resolution and in practice, I cannot access resources inside the VPN network or outside. When I was using Ubuntu 16.04 and I was using the VPN, the "/etc/resolv.conf/" file…
orestis
  • 1,458
79
votes
3 answers

systemd-resolve command not found in Ubuntu 22.04 desktop

I am going through some tutorials. When I try to execute systemd-resolve --status in Ubuntu 22.04 desktop, the system reports command is not found. What am I doing wrong here? I tried running sudo apt-get install -y systemd but it seems like…
kwoonfai
  • 891
54
votes
4 answers

How to disable systemd-resolved and resolve DNS with dnsmasq?

Ubuntu 16.10+ uses systemd-resolved as DNS resolver. I prefer the setup 16.04 uses, dnsmasq as the resolver. How can I do that on 16.10+, especially on 17.04?
Artyom
  • 1,803
29
votes
4 answers

systemd-resolve high cpu usage after update to 17.04

I have recently upgrade my Xubuntu from 16.10 to 17.04. Every things works well except systemd-resolve. some times it makes cpu usage too high and I don't know why this issue has been happend. And here is the top command output: PID USER PR …
21
votes
2 answers

How do I list DNS server order in systemd-resolve?

I know that systemd-resolve --status lists all my connections and their DNS servers and nmcli connection show | grep -i dns will list the priority of the DNS connections. But is there a single command I can run that will list all DNS…
chizou
  • 343
21
votes
5 answers

DNS over TLS with systemd-resolved

I was trying to enable DNS over TLS via systemd-resolved. I changed /etc/systemd/resolved.conf as…
17
votes
5 answers

How to Add dnsmasq and keep systemd-resolved (18.04 to 20.04)

I want to get fast dns resolution with dnsmasq and keep the default systemd-resolved. Looking for an elegant way to do this
cmak.fr
  • 8,976
16
votes
2 answers

Why is resolvectl no longer included in Bionic and what's the alternative

resolvectl is no longer part of the bionic systemd package: bionic search for resolvectl cosmic search for resolvectl I'm curious why it was removed and what we should be using as an alternative?
ericx
  • 377
15
votes
3 answers

systemd-resolved not resolving any domains

My NetworkManager connects to the internet but I do not have any internet access due to a bad DNS configuration. I do not have much experience with DNS settings, but it appears the issue is with systemd-resolved. I can ping IP addresses directly…
14
votes
3 answers

systemd-resolved, resolvconf.service, resolvconf and openresolv. Why, which and how?

I'm using a VPN client which adds two name servers to /etc/resolv.conf. All my connections are managed by Network-Manager. I have to use this VPN client for my work VPN but after Ubuntu went to systemd-resolved in 16.10 I am having problems with my…
Christian
  • 1,789
  • 2
  • 22
  • 38
14
votes
2 answers

resolv.conf - No DNS servers known

I am using focal Ubuntu 20.04.1 LTS (hosted virtual machine) Occasionally after a reboot DNS resolution fails (e.g. ping google.com > Resource temporarily unavailable) To 'fix' this I reboot the machine. What is the proper fix and why is this…
wal
  • 143
14
votes
2 answers

How can I see the systemd-resolve DNS cache?

Using sudo systemd-resolve --statistics I can see the current DNS cache statistics, for example: Cache Current Cache Size: 68 Cache Hits: 412 Cache Misses: 461 I would like to see all the entries of the…
johhnry
  • 165
1
2 3
11 12