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.
166
questions
167
votes
5
answers
382k
views
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?)
104
votes
11
answers
182k
views
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 ...
95
votes
12
answers
326k
views
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 ...
89
votes
7
answers
183k
views
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 ...
68
votes
3
answers
113k
views
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-...
50
votes
4
answers
109k
views
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?
29
votes
4
answers
13k
views
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 ...
20
votes
2
answers
41k
views
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 <connection> | grep -i dns will list the priority of the DNS connections. But is ...
19
votes
5
answers
30k
views
DNS over TLS with systemd-resolved
I was trying to enable DNS over TLS via systemd-resolved. I changed /etc/systemd/resolved.conf as follows:
[Resolve]
DNS=1.1.1.1
#FallbackDNS=
Domains=~.
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
...
14
votes
5
answers
30k
views
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 ...
14
votes
5
answers
27k
views
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
14
votes
3
answers
24k
views
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 ...
14
votes
3
answers
8k
views
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 ...
13
votes
4
answers
22k
views
DNS resolver stopped working after upgrade to 20.04
Just after Ubuntu upgrade to 20.04 /etc/resolv.conf contains:
nameserver 127.0.2.1
and it does not work. It works after changing to:
nameserver 127.0.0.53
But it is overridden after each restart ...
13
votes
1
answer
15k
views
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 ...
12
votes
2
answers
24k
views
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?
12
votes
2
answers
40k
views
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 ...
11
votes
2
answers
22k
views
How do I set the search path for systemd-resolved?
The man page for systemd-resolved.service says:
systemd-resolved maintains the /run/systemd/resolve/stub-resolv.conf file for
compatibility with traditional Linux programs. This file ...
10
votes
1
answer
16k
views
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: ...
10
votes
2
answers
22k
views
dnsmasq : failed to create listening socket for port 53: Address already in use
I'm trying to configure dnsmasq to work along with NetworkManager, the problem is when I try to run the service it fails with:
dnsmasq: failed to create listening socket for port 53: Address already ...
10
votes
2
answers
31k
views
Syslog flooded with systemd-resolved messages "Using degraded feature set"
Lately my syslog is being flooded with these messages:
localhost systemd-resolved[1632]: Using degraded feature set (TCP) for DNS server 127.0.1.1.
I'm on Ubuntu 17.04. resolv.conf is auto-...
9
votes
0
answers
2k
views
Systemd-resolved not getting nameservers from DHCP
I'm running a few ubuntu 18.04 servers in a Windows AD environment. The servers have no problem getting IPs via DHCP, but the DNS settings specified in option-6 are not written to any files.
...
7
votes
1
answer
5k
views
failure to resolve DNS query using IPv6, e.g. host -6 gnu.org, dig -6 gnu.org
Why doesn't the default Ubuntu LTS install allow host -6 gnu.org or dig -6 gnu.org to work?
Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-27-generic x86_64)
$ host -6 gnu.org
;; communications error ...
7
votes
2
answers
12k
views
How to write systemd service to ensure start after dns service?
After upgrading to Kubuntu 19.04, I don't know how to write a service so that it can start after DNS service has been initialized.
In this past, I just use After=network.target, but now it doesn't ...
7
votes
1
answer
5k
views
After changing networks, DNS lookup fails to domains that were local
I recently upgraded from 16.04 to 17.10, and some domain names now fail to resolve in systemd-resolved, even though my home DNS server resolves the domain names just fine.
My workplace domain is *.cs....
6
votes
3
answers
11k
views
Prioritize VPN's DNS Server
Is there a way to prioritize a particular DNS server only when connecting to a VPN (OpenVPN) through Network Manager or one of its configuration files?
I have a VPN (192.168.1.*) I frequently connect ...
6
votes
1
answer
4k
views
How can I identify detailed DNS behavior with systemd?
I am trying to diagnose issues with a DNS server, in an environment with multiple DNS servers set by DHCP.
In Ubuntu Server 20.04.2 (with no changes to DNS behavior) I need to find which DNS server(s) ...
6
votes
1
answer
4k
views
Why there are resolvconf.service and systemd-resolved.service services present in ubuntu at the same time
In ubuntu there are two solutions that provide dns cache and configure functionality. One is resolvconf.service (part of resolvconf package). Another is systemd-resolved.service (part of systemd ...
6
votes
1
answer
10k
views
Default DNS Server not switched after connecting to OpenVPN
I'm using a OpenVPN connection between my laptop and my server. The configuration was working until today (i simply ran apt update && apt upgrade), but since then my DNS settings are "wrong" ...
6
votes
2
answers
15k
views
Stop resolvectl Changing DNS
I have a home network. DHCP lease works for every other system / appliance but Ubuntu 22 in that I lease out local DNS server with its local subnet / zones as primary DNS server 172.16.100.22. And ...
6
votes
3
answers
7k
views
Using Host DNS resolution in Docker Containers
I think this is one of the widely discussed problem in SO Network.
Most of the solutions are either out-dated or stale suggestions with latest Ubuntu (21.04)/Systemd changes.
Problem:
VPN Changes from ...
5
votes
1
answer
19k
views
How to disable 127.0.0.53 as DNS?
For some reason, my DNS seems to be set to 127.0.0.53. It's not really a problem, since my local (i.e. on my laptop) DNS seems to redirect DNS requests to the default gateway. But I would like it to ...
5
votes
4
answers
21k
views
18.04 Unable to connect to server due to "Temporary failure in name resolution"
I am at a bit of a loss. I am able to perform an nslookup and a dig on the address "imap.comcast.net" but if I try to ping it or connect to it from my application I get a "Temporary failure in name ...
5
votes
1
answer
8k
views
How to configure 17.10 desktop's systemd-resolve dns via terminal?
I can do this via network setting's manual dns input field yet if I like to manage it via terminal (ssh), what may I do to accomplish this?
5
votes
1
answer
4k
views
18.04 server - systemd-resolve returns cached cname NODATA for A lookup
Summary: DNS A record lookups fail to resolve due to cached CNAME NODATA lookups.
Details: Mail log reports errors with DNS lookups:
Host or domain name not found. Name service error for name=...
5
votes
1
answer
826
views
How should I be doing LAN name resolution on 18.04
How should I be doing LAN enable name resolution on 18.04?
I have a LAN full of Ubuntu 16.04 devices, connected via a router running dnsmasq. All the local devices have a single word names, IP are ...
5
votes
0
answers
12k
views
Using degraded feature set (UDP) for DNS server
I have a problem with DNS on the wired connection. For some reason, DNS isn't working on it, though I can ping.
Some logs:
systemd[1]: Started Network Name Resolution.
systemd-resolved[1060]: Using ...
5
votes
0
answers
1k
views
systemd-resolved and resolvconf : is it ok to have both installed?
Systemd-resolved is present by default in Ubuntu 18.04. Resolvconf pkg is not.
From reading around, systemd-resolved provides name resolution while resolvconf provides multi-client access to update ...
5
votes
1
answer
5k
views
Ubuntu 18.04 does not get search domain from DHCP server?
I have a system with Ubuntu 18.04 on it, and there have been some (apparently) radical changes in the way DHCP client and DNS are handled.
After stumbling through documentation on systemd-resolved, I'...
4
votes
1
answer
4k
views
Why do I need to add nameservers to resolv.conf?
I'm running Ubuntu 18.04 (upgraded from some earlier version) which uses Network Manager and systemd-resolved for name resolution. When I boot, my ethernet connection enp0s31f6 is brought up by ...
4
votes
1
answer
34k
views
Failed to start systemd-resolved.service . systemd-resolved.service: Failed with result 'resources'. [1]: Failed to start Network Name Resolution
Main Issue is:
# systemctl status systemd-resolved.service
systemd-resolved.service -
Network Name Resolution Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: ...
4
votes
5
answers
25k
views
Change DNS to Coudflare 1.1.1.1 on Ubuntu 17.10
I'd like to take advantage of the recent Cloudflare 1.1.1.1 DNS service on my Ubuntu (17.10, will be on 18.04 LTS when it lands). I can not get the GUI instruction to work (changing the DNS using ...
4
votes
3
answers
9k
views
How to properly disable systemd-resolved
On my Ubuntu Eoan laptop, I find that systemd-resolved sporadically inexplicably fails to respond to local DNS requests to 127.0.0.53 even when requests to my router's DNS server still work, so I want ...
4
votes
4
answers
12k
views
How to make Ubuntu server 18.04 use dns-nameservers from /etc/network/interfaces?
On Ubuntu server 18.04 I've disabled netplan and using /etc/network/interfaces.
sudo apt-get -y install ifupdown
cat <<EOM | sudo bash -c 'cat > /etc/network/interfaces'
auto lo
iface lo ...
4
votes
1
answer
3k
views
Ubuntu 18.04 DNS Not Working
I'm having a problem with DNS on Ubuntu 18.04. I think there is a misconfiguration somewhere between netwrok-manager, systemd-resolved and resolvconf.
I can ping IP addresses ok, but not host names:
$ ...
4
votes
0
answers
5k
views
how to turn on dnssec on ubuntu 20.04 as client via systemd-resolved
I want to turn on dnssec validation on ubuntu 20.04 as a normal client. When I do dig +dnssec on my router as name server it returns a rrsig. I assume that this means, that the router is capable of ...
4
votes
0
answers
1k
views
systemd-resolve reset after wake from suspend
I'm using wireguard client with the following PostUp script:
PostUp = systemd-resolve -i %i --set-dns=x.x.x.x --set-domain=~.
systemd-resolve did set the DNS setting correctly and 127.0.0.53 was ...
4
votes
0
answers
2k
views
DNSSEC problems in Ubuntu 17.04
I have installed Ubuntu 17.04.
In the installer, I connected to a wifi, but the installation process could not connect, saying DNSSEC validation failed.
The same situation was in the installed system.
...
3
votes
1
answer
2k
views
Why is dhclient + systemd-resolved restarting frequently?
I'm running an ubuntu server in aws on VERSION="18.10 (Cosmic Cuttlefish)"
We've been having intermittent dns resolution issues, and while looking into that I've seen that every 20 minutes or so I'm ...
3
votes
1
answer
10k
views
Lost editing DNS config in Ubuntu 18.04
Objective
For personal use, I need to add a custom server running on 127.0.0.1#5354 that resolves queries for .hyperboria domains.
What I've done
There used to be a file called /etc/resolv.conf ...