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
1 answer
136 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 ...
user avatar
  • 101
1 vote
0 answers
135 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-...
user avatar
0 votes
0 answers
58 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 ...
user avatar
  • 1
4 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
70 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: ...
user avatar
  • 1
0 votes
0 answers
101 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 ...
user avatar
0 votes
0 answers
92 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 ...
user avatar
0 votes
1 answer
132 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) ...
user avatar
  • 21
0 votes
0 answers
96 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 ...
user avatar
  • 31
0 votes
1 answer
520 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 ...
user avatar
0 votes
0 answers
174 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. ...
user avatar
  • 23
0 votes
0 answers
85 views

Restarting networking after flushing routes (systemd-resolved won't restart)

I flushed my kernel routing table and wanted to return to using the network but found every server unreachable. I ended up rebooting my computer to restore functionality. Can you help me identify what ...
user avatar
0 votes
0 answers
185 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 ...
user avatar
  • 1,265
0 votes
1 answer
663 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/...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
1 vote
1 answer
192 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
  • 1
0 votes
0 answers
733 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 ...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
0 votes
0 answers
87 views

Systemd-resolved not querying local server (dnsmasq) when offline

I have configured dnsmasq to handle some local domains, with config like this: address=/local/127.0.0.1 address=/devel/127.0.0.1 /etc/systemd/resolved.conf was changed to: [Resolve] DNS=127.0.1.1 # ...
user avatar
  • 286
0 votes
0 answers
89 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 ...
user avatar
1 vote
1 answer
687 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: $ ...
user avatar
  • 123
0 votes
1 answer
242 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 ...
user avatar
0 votes
1 answer
553 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 ...
user avatar
0 votes
0 answers
34 views

Ubuntu 20.04 LTS, Network borked it seems

So I've got seven of Ubuntu 20.04 LTS virt guests both deployed from the same image. Two of these cannot reach a set of Cisco Umbrella servers for DNS... the other all can. Testing using ping and '...
user avatar
  • 1
0 votes
1 answer
191 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 ...
user avatar
1 vote
1 answer
173 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 ...
user avatar
5 votes
2 answers
1k 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 ...
user avatar
1 vote
0 answers
40 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-...
user avatar
3 votes
1 answer
8k 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: ...
user avatar
1 vote
0 answers
2k 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 ...
user avatar
  • 21
0 votes
1 answer
294 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 ...
user avatar
  • 1
2 votes
1 answer
493 views

Proxy failing because system resolves it using local DNS instead of VPN (Ubuntu 20.04)

I am using an VPN over openconnect through NetworkManager. I also have a proxy server whose configuration is reachable via VPN (at http://wpad/wpad.dat). Sporadically, when I connect to VPN it fails ...
user avatar
3 votes
1 answer
5k 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 ...
user avatar
  • 1,063
2 votes
0 answers
1k views

How do I disable EDNS in systemd-resolved

I am experiencing long DNS lookup times (> 5s) due to non-compliant EDNS responses from my DNS server triggering (I think) this bug in systemd-resolved. I'd like to turn off EDNS in resolved to see ...
user avatar
0 votes
0 answers
906 views

How to get systemd-resolved to use /etc/hosts when openFortiVPN is active

Ubuntu 18.04. I have a host entry in /etc/hosts and this is being resolved correctly when I use nslookup. My /etc/nsswitch.conf looks like # /etc/nsswitch.conf # # Example configuration of GNU Name ...
user avatar
0 votes
0 answers
96 views

Select preferred DNS in NetworkManager when more connections are active

Good morning. I have this situation, in which I have the primary interface eth0 set with its DNS, and I set a second interface (connection in NetworkManager) up, tun0, which is a VPN, but ...
user avatar
  • 101
0 votes
0 answers
194 views

Is there a way for systemd-resolve to retunr entry in /etc/hosts?

is there a way to make systemd-resolve return entries in /etc/hosts when I do dig on 192.168.0.1 ? I have issue that one software is querying dns and thus ignoring /etc/hosts entries... any ideas ? ( ...
user avatar
0 votes
1 answer
307 views

Can ping and traceroute but not able to browse certain websites

I can ping and traceroute with the help of mtr -rw but I simply cannot browse certain websites. I have found no common denominator between these websites to understand where the problem lies. The only ...
user avatar
  • 413
0 votes
0 answers
116 views

ubuntu 20.04 freezes with error Server returned error NXDOMAIN

my ubuntu 20.04 machine has been periodically freezing over the past several weeks. When I hold the power button down and power off the machine and restart, looking at /var/log/syslog, the last entry ...
user avatar
  • 259
0 votes
0 answers
94 views

how come resolvconf update /etc/resolve.conf file even if systemd-resovled service is disabled?

I disabled systemd-resoved service and set nameserver in raspberry pi to my local dns, but I discovered it on reboot it got changed. To nameserver I don't know where it came from and how it is ...
user avatar
0 votes
1 answer
214 views

systemd-resolved returns server failure time to time

One of my c++ app under 18.04 makes a lot http/s requests with libcurl. Later in logs I see such moaning: CURL error has occurred: Couldn't resolve host name. Nearly the same in the syslog: Jan 17 19:...
user avatar
0 votes
1 answer
201 views

DHCP dns stopped working on ubuntu 18.04

I have setup new ubuntu 18.04 server which has dhcp assigned ip and dns 192.168.120.62 , after setup when i checked i waw able to get result using nslookup for local dns entries of 192.168.120.62 but ...
user avatar
2 votes
0 answers
5k 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 ...
user avatar
0 votes
0 answers
142 views

Connectivity issues after VPN disconnect: Ping but no DNS

PROBLEM I often use NordVPN on my linux machine (20.04.1), which uses the systemd-resolve network manager. After I disconnect from the VPN, I often have connectivity issues: I CAN ping 8.8.8.8 I ...
user avatar
0 votes
0 answers
74 views

resolved does not use my DNS server

Ubuntu 20.10 In my local network I have my DNS server (IP hole) addres of this server is 192.168.0.155 Until systemd-resolved.service is active my system do not use this server When resolved is ...
user avatar
7 votes
2 answers
16k 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 ...
user avatar
  • 73
0 votes
1 answer
635 views

Per-domain DNS servers

My laptop is running Ubuntu 20.10. It's connected to a network with a fairly normal internet connection - the router provides DHCP, DNS etc. But another host on the network (not the router) provides ...
user avatar
  • 819
2 votes
1 answer
546 views

systemd-resolve seems to not query the specified DNS server

Edit: during the time it took me to type out this question it apparently fixed itself, it now works as intended. I'm still interested in as to why this could have happened :) My Setup is as follows: I ...
user avatar
  • 200
0 votes
1 answer
1k views

how to change the log level to ERROR for systemd-resolved

I am using ubuntu 20.04, I configured rsyslog to send/forward logs to a remote syslog-ng but I am getting to many WARNING message like this: Server returned error NXDOMAIN, mitigating potential DNS ...
user avatar
  • 166