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.
164
questions
0
votes
1
answer
37
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 ...
-2
votes
0
answers
24
views
How to Persist Options rotate in Resolv.conf in a dynamically generated file
I am looking for Options to rotate the two nameservers I have and I read options rotate is one way to do so.
However my /etc/resolv.conf is a dynamically generated file which is generated via /run/...
2
votes
0
answers
35
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 ...
1
vote
0
answers
61
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-...
0
votes
0
answers
1k
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 ...
1
vote
0
answers
264
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 ...
0
votes
0
answers
95
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 ...
0
votes
0
answers
110
views
Clear DNS Domain with systemd-resolve
resolvectl can clear a DNS Domain set to "~."
$ resolvectl domain
Global:
Link 3 (ens192): ~. <--
$ sudo resolvectl domain ens192 ""
$ resolvectl domain
Global:
Link 3 (ens192)...
0
votes
0
answers
219
views
DNS stopped working (after running docker?)
My machine is no longer able to find a DNS server. It appears to have started after first running a docker container (bound to 127.0.0.1:port i think), but this could be a coincidence.
In other words: ...
0
votes
0
answers
48
views
Network connection not working
I have a PC with Ubuntu server 20.04.5 LTS.
After stopping systemd-resolved and systemd-networkd with this commands:
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-...
1
vote
1
answer
43
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".
...
0
votes
2
answers
457
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 ...
0
votes
0
answers
58
views
WIFI Disconnects Causes Browsers to Stop - Lubuntu 22.04
I have been having browser lock ups with Lubuntu 22.04 on a Chromebook. This started when I changed from chrome to Lubuntu. Sometimes CTRL+q followed by reloading the browser corrects and sometimes a ...
0
votes
0
answers
118
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 ...
0
votes
0
answers
22
views
If resolv.conf not found what is DNS default?
I have deleted the symlink /etc/resolv.conf. Am I right in thinking that stopping and disabling systemd-resolved prevents /etc/resolv.conf being recreated on boot? Or do multiple things try and ...
0
votes
2
answers
3k
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 ...
0
votes
0
answers
41
views
Adding DNS server address permanently
Ubuntu 18.04
I have a laptop that I'm attempting to configure the DNS nameservers, which was configured by someone who is no longer working for my company. For some reason, the laptop IO doesn't work, ...
1
vote
1
answer
983
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/...
0
votes
1
answer
140
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 ...
0
votes
1
answer
329
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
...
4
votes
2
answers
9k
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
2k
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-...
0
votes
0
answers
310
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 ...
54
votes
2
answers
68k
views
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 ...
1
vote
2
answers
933
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:
...
6
votes
1
answer
3k
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 ...
0
votes
0
answers
2k
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 ...
3
votes
1
answer
2k
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) ...
1
vote
1
answer
429
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 ...
1
vote
1
answer
4k
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 ...
0
votes
1
answer
870
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.
...
0
votes
0
answers
592
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 ...
1
vote
1
answer
3k
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/...
0
votes
0
answers
4k
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 ...
1
vote
1
answer
566
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 ...
0
votes
0
answers
3k
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 ...
0
votes
0
answers
1k
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 ...
11
votes
3
answers
15k
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 ...
0
votes
0
answers
156
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 ...
3
votes
1
answer
2k
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:
$ ...
0
votes
1
answer
408
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
344
views
MAAS cloud-init hanging due to systemd-resolved?
We're observing some weirdness when using MAAS (version 2.8 in this case). The machines get systemd-resolved configured after deployment (using an ansible role) and from that point every system reboot ...
1
vote
1
answer
322
views
SOLVED upgrade error: illegal package name `systemd/noawait'
when I run this sudo apt upgrade command I get this:
Reading package list ... Done
Creating dependency tree
Reading status information ... Done
Calculating the update ... Done
The following packages ...
5
votes
3
answers
4k
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 ...
1
vote
0
answers
43
views
How to set two services as alternative to each other?
I'm using unbound instead of the normal resolver on a development server that I have
unfortunately - it crashes many times and service do not start
Ubuntu has it's own resolver as a service systemd-...
4
votes
1
answer
24k
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: ...
3
votes
0
answers
4k
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 ...
1
vote
1
answer
636
views
systemd-resolved: ResolveUnicastSingleLabel= missing in 20.04?
I am trying to get systemd-resolved to resolve single-label querries/hostnames.
As far as I understand systemd-resolved, it just drops request like dig randomhostname because no fqdn is provided.
if I ...