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.

162 questions
160
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,526
  • 4
  • 11
  • 20
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…
Gregory Schultz
  • 1,309
  • 2
  • 8
  • 9
93
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,756
  • 3
  • 18
  • 30
88
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,398
  • 3
  • 12
  • 18
54
votes
2 answers

systemd-resolve command not found in Ubuntu 22.04 desktop

Hi I am going through some tutorials. When I try to execute systemd-resolve --status in Ubuntu 22.04 desktop, system reports command not found. What am I doing wrong here? I tried running sudo apt-get install -y systemd but it seems like…
kwoonfai
  • 641
  • 1
  • 3
  • 3
44
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,663
  • 2
  • 14
  • 29
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 …
Ali Razmdideh
  • 5,710
  • 2
  • 34
  • 51
18
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
  • 313
  • 1
  • 2
  • 6
17
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…
Fernando Gont
  • 171
  • 1
  • 1
  • 4
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,651
  • 2
  • 20
  • 35
14
votes
5 answers

Ubuntu 18.04 systemd-resolved error NXDOMAIN

I have installed Ubuntu 18.04 and the syslog is showing me the following error: systemd-resolved: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. What does this…
boluser
  • 141
  • 1
  • 1
  • 4
14
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,411
  • 2
  • 29
  • 45
13
votes
1 answer

How can I disable LLMNR in systemd-resolved?

How can I disable LLMNR in systemd-resolved? I tried adding: LLMNR=no to /etc/systemd/resolved.conf but when I type systemd-resolve --status it still shows LLMNR setting: yes I have tried rebooting computer and restarting…
MoonManT
  • 575
  • 2
  • 6
  • 11
12
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
  • 123
  • 1
  • 1
  • 9
11
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…
Jared Young
  • 113
  • 1
  • 1
  • 5
1
2 3
10 11