Skip to main content
Planned maintenance impacting Stack Overflow and all Stack Exchange sites is scheduled for Monday, September 16, 2024, 5:00 PM-10:00 PM EDT (Monday, September 16, 21:00 UTC- Tuesday, September 17, 2:00 UTC). The email/password authentication method will be unavailable for logging in and registering. Read more here

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

Network won't work after 24.04.1 LTS upgrade

I upgraded my 22.04 LTS desktop to 24.04.1 LTS on a Dell Inspiron 15 3520, and it failed at the end. I booted from a USB drive and was able to finish the installation, but I'm getting Network ...
Marco Binda's user avatar
2 votes
1 answer
175 views

dnsmasq failed to start following update to ubuntu server 24.04.1 from 22.04

I upgraded my ubuntu server from 22.04 to 24.04.1. Upon a reboot i saw that dnsmasq failed to start. I found that this was because it was sharing port 53 with systemd-resolved. So i went into the ...
Chris Pavey's user avatar
1 vote
3 answers
1k views

24.04 - How to find "what" is changing DNS settings in /etc/resolv.conf

Question: How can I remove whatever is setting this DNS server, incorrectly? The methods I see for manually changing a DNS server in Ubuntu 24.04 don't seem to in place here as I don't seem to have ...
Nom Obscura's user avatar
1 vote
0 answers
103 views

Resolver Search Path in Ubuntu 24.04

I just want to add to the resolver search path. Editing resolv.conf symlinks to a dynamically generated file, so changing it doesn't live past reboots. Whats the current way to add permanently to the ...
Ken Mandelberg's user avatar
10 votes
3 answers
5k views

DNS Stopped resolving on upgrade to Ubuntu 23.10 and Ubuntu 24.04

I just upgraded my Ubuntu 22.04 boxes to 23.10 and then to 24.04. They stopped resolving DNS queries. They are using systemd-resolved and resolvconf.
David's user avatar
  • 3,260
1 vote
1 answer
185 views

How to force Ubuntu to look at netplan for DNS and not look at resolv.conf

What is the best (proper?) way to force Ubuntu 22.04 to look at ONLY netplan for DNS configuration? I'm working with Rancher+RKE2 and their preparation script includes truncating the resolv.conf file. ...
nomad's user avatar
  • 11
3 votes
2 answers
780 views

Can't resolve any DNS addresses, resolveconf is not installed (and can't be installed)

I just updated to 24.04. Ever since, my machine hasn't been able to resolve any DNS names, making it impossible to update or install any packages. I've followed numerous forum posts saying to edit ...
meatlocker's user avatar
0 votes
0 answers
37 views

i have installed ubuntu on my laptop yet i cant connect to the internet i have figured out it is a DNS configuration error how do i solve it

I have installed Ubuntu on my laptop bare Metal the latest version of 2024 if I try and access the internet from any browser I can't because of name resolution if I ping an IP directly I get a ...
rug24's user avatar
  • 1
0 votes
0 answers
874 views

Locale DNS not resolving - timed out

After several hours of searching, unfortunately, I haven't been able to solve the following problem and hope someone can help me. On the Server is Ubuntu 22.04 with docker, which provide multiple ...
serior's user avatar
  • 1
0 votes
1 answer
3k views

Netplan DNS configuration is overridden UBUNTU 22.04

I have just installed ubuntu 22.04 from scratch on a new physical server. One thing that has been a thorn in my side with Ubuntu since about 14.04, is trying to wrap my head around the complexities ...
Dennis 's user avatar
  • 174
0 votes
0 answers
228 views

systemd.resolved wont start - stale file handle

I was getting issues with resolving any dns ive checked network settings without problem. Then ive realize that systemd-resolved wasnt started. Can you help me with the issue? What ive tried checked ...
totalnoob's user avatar
0 votes
1 answer
1k views

systemd-resolved service not starting on boot with error 13 (Permission denied)

I am encountering a strange issue with the systemd-resolved service not starting on boot. To my knowledge I do not know how or why this has happened. The only major changes to the server are running ...
MMyk's user avatar
  • 1
0 votes
0 answers
775 views

Unable to resolve local network DNS Names from Ubuntu 22.04.3 and Unable to resolve Ubuntu DNS Name from Network

Not sure what happened today, but my Ubuntu server is no longer resolvable on the LAN, and nor can the Ubuntu server resolve any names on the LAN. The Ubuntu Server can resolve external Domain Names ...
Simon Todd's user avatar
2 votes
0 answers
734 views

Docker daemon timeout on DNS requests

I am running 350 containers, however they are having dns timeout issues. The below logs are being observed in the docker.service Oct 20 22:18:54 node1 dockerd[22149]: time="2023-10-20T22:18:54....
Trevor K Smith's user avatar
0 votes
1 answer
469 views

Resolv.conf is out of control

I have tried God knows how many ways to resolve this and get it under control, but, it doesnt seem to take. I only want the single nameserver in there as 10.0.0.8. Can someone please help. I have ...
Ken Vermillion's user avatar
2 votes
0 answers
112 views

Send notification when the network route changes

I have 2 network interfaces: ethernet enp2s0 with default metric 1 mobile enx0 with default metric 2 When Ethernet goes down, the metric changes and vice versa. I am getting in systems notifications ...
Oleksa's user avatar
  • 320
1 vote
0 answers
394 views

Need to manually start systemd-resolved for internet to work

For some reason I suddenly can no longer access internet after (re)booting, I can ping 8.8.8.8 but not google.com, hence there is a problem with name resolution. If I run sudo systemctl enable systemd-...
Evert Homan's user avatar
2 votes
0 answers
10k views

DNS stopped working (22.04)

UPDATE #2: The next day after booting, I enabled and started systemd-resolved, which apparently reset it to its default configuration. Output of resolvectl status looks normal, and DNS now works with ...
Ragnar Danneskjold's user avatar
2 votes
0 answers
1k views

systemd-resolve and dnsmasq on a server

i have the following issue on a server where i have dnsmasq installed: $ systemd-resolve --status Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found. and that leads to ...
hiro protagonist's user avatar
0 votes
0 answers
118 views

Populating resolved with DNS servers

I was recently setting up a custom DNS server for my ZeroTier network. I'm using networkmanager and resolved. I added it and it got added to resolved's global list of DNS servers. However, I noticed ...
Tomáš Plášek's user avatar
1 vote
1 answer
72 views

What does the format from man pages "address#server_name" mean in "DNS=" settings in /etc/systemd/resolved.conf?

In the ubuntu manpages for /etc/systemd/resolved.conf under the "DNSOverTLS=" section, the man pages state Entries in "DNS=" should be in format "address#server_name". ...
DanRan's user avatar
  • 133
0 votes
2 answers
915 views

Generate iptables rules while connecting to VPN Server

I'm building a virtual Ubuntu Server(LXC on Proxmox) that shall act as router and tunnel some devices(e.g. AppleTV) of my local network through a VPN (expressVPN). Connecting and routing to different ...
Michael's user avatar
0 votes
0 answers
335 views

Netplan nameservers settings not used without resolv.conf entry

I read here that you're usually not supposed to edit resolv.conf, since it is managed by other services. The server is running Ubuntu 22.04.1 LTS. However, the DNS on my server is not working unless I ...
John Stoneman's user avatar
1 vote
3 answers
10k views

.local domain resolving problem in 20.04

I have DNS server with domains in .local zone. After changing priorities in /etc/nsswitch.conf and adding subconfig with my domains to /etc/systemd/resolved.conf.d/ i have servfail error (local cache ...
Volodymyr's user avatar
1 vote
1 answer
2k views

Systemd-resolved setting unexpected DNS list

When I connect to my phone hotspot I would expect systemd-resolved to use dhcp provided dns list. For some reason it seems to not be the case for me. I am using Ubuntu 22.04.1 LTS /etc/systemd/...
Marcin Król's user avatar
0 votes
1 answer
211 views

systemd-resolved DNS is not cleared when switching network

I have an Ubuntu 20.04 with systemd 245 and network-manager 1.22.10. When I connect to a Wi-Fi that advertise IPv4 and IPv6 DNS, it works correctly and systemd-resolved --status shows the IPv4 DNS ...
Hugal31's user avatar
  • 111
0 votes
1 answer
537 views

`resolvconf` changing current DNS. Netplan stict using nameserver

I need to have my own DNS server in the corporate. I have the following config set for netplan: network: version: 2 renderer: NetworkManager ethernets: eno1: dhcp4: yes ...
Parsa Noori's user avatar
6 votes
2 answers
16k 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 ...
penguinpages's user avatar
0 votes
1 answer
3k views

Default search domain for /etc/resolv.conf

With systemd-resolved, where does DOMAINS in search come from? /etc/systemd/resolved.conf [Resolve] DNS=1.1.1.1 Domains=lan /etc/resolv.conf nameserver 127.0.0.53 search lan DOMAINS <---- lan is ...
nehz's user avatar
  • 101
0 votes
0 answers
3k views

Ubuntu 22.04: Unable to stop systemd-resolved: it is relauched

on ubuntu 22.04, i tried to stop and disable systemd-resolved: sudo systemctl stop systemd-resolved sudo systemctl disable systemd-resolved sudo systemctl status systemd-resolved ○ systemd-...
gquentin's user avatar
0 votes
0 answers
442 views

systemd-resolved does not resolve dns names

So long as I had a single interface up getting its IP from a DHCP server things were working fine. I then connected a second interface and statically configured an IP address on it. Now dns resolution ...
Ajit's user avatar
  • 11
73 votes
3 answers
125k 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-...
kwoonfai's user avatar
  • 831
1 vote
2 answers
2k views

/etc/resolve.conf corrupted!

I've edited /etc/resolve.conf on my ubuntu 20.04 by mistake and it corrupted as below : root@ubnt20srv-test-01:/etc# cat resolv.conf cat: resolv.conf: No such file or directory but the file exist: ...
leo's user avatar
  • 11
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 ...
Ian D. Allen's user avatar
0 votes
0 answers
3k views

Can not resolve DNS on Ubuntu 20.04 on specific network

I am having trouble resolving DNS only at my parents place which I really do not understand. It is the only place where I have that problem. My feeling is that systemd-resolved is not configured ...
ajfriesen's user avatar
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) ...
JCD's user avatar
  • 83
1 vote
1 answer
547 views

Wrong nameservers show with `systemd-resolve --status`

I have some rogue nameservers that I can't seem to get rid of on my ubuntu 20.04 server. I run 2 pihole instances, which have been configured to work with ipv4 and ipv6 Cloudflare DOH. When running ...
D34DC3N73R's user avatar
3 votes
1 answer
8k views

Port conflict in Pi-Hole Docker installation with systemd-resolve process

I am trying to install Pi-Hole alongside Nextcloud on my Raspberry Pi with Ubuntu 20.04. NextCloud is installed normally on the top of Ubuntu, whereas I am trying to install Pi-Hole in a container to ...
danc.940's user avatar
0 votes
1 answer
1k views

Ubuntu DNS resolver not use DNS Over TLS port 853 for DNS resolve

I have Ubuntu 20.04 server. This server is set up to run WordPress sites (LEMP stack). In this server, I have set up an ubuntu DNS resolver to use "DNS Over TLS". Use Cloudflare DNS service. ...
Chathu's user avatar
  • 25
0 votes
0 answers
963 views

How to split DNS resolution based on the target domain?

Note: I read two other questions (here and here) that address the same problem but none of the solutions is applicable to my case. I run Pi-hole in a docker container as my DNS server - for the server ...
WoJ's user avatar
  • 1,315
1 vote
1 answer
5k views

DNS servers "ignored" with NetworkManager, systemd-resolved and VPN tunnel

With Ubuntu 20.04, I connect to the internet via WLan using NetworkManager. Then I establish a VPN with OpenConnect. I am using the "stub resolv.conf": /etc/resolv.conf -> /run/systemd/...
Torsten Römer's user avatar
0 votes
0 answers
5k views

Ubuntu Server 20.04.3 LTS 00-installer-config.yaml or resolv.conf for DNS settings

So I'm freaking confused. I'm trying to specify local DNS servers for our domain. This Ubuntu Server 20.04.3 doesn't use the old interfaces file. I configured the yaml file for netplan, # This ...
geardogg's user avatar
1 vote
1 answer
1k views

systemd-resolve not apply settings based on network interface

I want to config systemd-resolve for working with different dns servers based on network interface. But when I create config un the /etc/systemd/network/tun.network nothing is happen. My tun.network ...
theSemenov's user avatar
1 vote
0 answers
4k views

Changing DNS nameservers with systemd-resolve doesn't persist

let me start by saying that I'm not sure whether I'm running Ubuntu server or Ubuntu desktop, that being said, my 'server' is running on a VPS. Here is the output of lsb_release -a: No LSB modules are ...
nick's user avatar
  • 11
0 votes
0 answers
2k views

Problem with /etc/resolv.conf

I cannot add comments to question 1128536(How to make persistent changes to /etc/resolv.conf Ubuntu 18.10) Using Ubuntu 20.04.3 on laptop ; latest update Oct 19th, after the one but last update oct ...
Derek Giroulle's user avatar
15 votes
3 answers
28k 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 ...
Jared Young's user avatar
0 votes
0 answers
202 views

No Graphics Output from RTX 3080; X Server Not Configured

Beginner user here. I've got a server box loaded with an Intel S2600ST, an Intel Xeon Silver 4216, and an RTX 3080, and either Ubuntu 20.04.03 or 21.04. When I've had the LTS loaded, it would ...
Zeitrif's user avatar
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: $ ...
cjt's user avatar
  • 153
0 votes
1 answer
448 views

Why do two Ubuntu systems in the same network behave differently in DNS resolution?

EDIT (tl;dr) I seem to have identified part of the problem here, as at least the differences in /etc/resolv.conf and related files are gone. But I still cannot connect via WiFi, so other difference ...
sancho.s ReinstateMonicaCellio's user avatar
0 votes
1 answer
2k views

Ubuntu 20.04 resolved waits for refused IPV6 result with dnsmasq

TL;DR My DNS queries are slow because systemd-resolved queries the DNS server on IPv4 successfully but repeatedly queries on IPv6 after the DNS server responds with a REFUSED. Is this a resolved ...
tegtmeye's user avatar