Questions tagged [systemd-resolved]

Systemd Network Name Resolution manager

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

Ubuntu 20.04 systemd-resolved should resolve to different dns servers based on search domain

I am using Ubuntu 20.04 and systemd-resolved to resolve dns queries. Machine is attached to 1 interface. network: ethernets: eth0: dhcp4: true set-name: eth0 nameservers: ...
user avatar
0 votes
1 answer
23 views

Why does systemd-resolvd fail to transparently query its upstream DNS resolver for short hostnames?

I use dnsmasq to provide DHCP service on my LAN. dnsmasq is also providing DNS service. When host foo acquires a an IP address via DHCP, dnsmasq will respond to DNS queries for the name foo by ...
user avatar
  • 1,226
0 votes
0 answers
43 views

resolvectl ignores new VPN network adapter

I have a strange problem when I connect to a company VPN with forticlient application. First, I did not know what was wrong. After spending some time, I figured out that DNS is not working as it ...
user avatar
  • 1,286
0 votes
0 answers
38 views

DNS Resolution over Network Interface

I am trying to route specific site DNS queries through specific network interface. I have private site which is accessible only through specific network interface enp39s0 (eth) and my default internet ...
user avatar
  • 243
0 votes
1 answer
62 views

What is the purpose of running a local DNS proxy server like systemd-resolved?

I was reading about systemd-resolved and how it listens on 127.0.0.53 for DNS requests. What is the purpose of running this server and making queries to it when you could directly query a DNS server ...
user avatar
1 vote
1 answer
79 views

systemd-resolved: which DNS server is used when no domains are set?

I'm wondering what DNS servers systemd-resolved will use when no domains are set. Does it use the Global DNS server or use one of the Link DNS servers? For example, when there are no domains set: $ ...
user avatar
0 votes
1 answer
149 views

Disable systemd-resolved to free up port 53 and use DNS servers provided by dhcp

I will be running a Pi-hole server in a docker container, so I have freed up port 53 by settingDNSStubListener=no in /etc/systemd/resolved.conf and restarting systemd-resolved. This has freed up port ...
user avatar
0 votes
0 answers
30 views

Unable to resolve against local DNS server

I have a Bind9 server set up on my local server (at 192.168.0.15, named "groth") and I've just built a Ubuntu 20.04 laptop (jedi-u20) which I'm trying to set up to query the Bind server. On ...
user avatar
0 votes
1 answer
2k views

DNS Resolution / Resolved not working on Fedora 35

DNS resolution has broken on my laptop, I'm running Fedora 35 The issue started occurring today, the machine wasn't used for several days and had died due to discharge (it might have been on linux at ...
user avatar
  • 11
2 votes
0 answers
47 views

Port 53 UDP is "open". Systemd-resolved is disabled and no process is listed

I want to free my port 53 on my Ubuntu 20.04 system. sudo ss -lnup gives this output antani@strappanai:~ » sudo ss -lnup State Recv-Q Send-...
user avatar
  • 231
0 votes
0 answers
109 views

How to configure DNS with systemd and PXE boot

I am PXE booting an Arch Linux system, and everything is working fine except that I can't get systemd-resolved to set up my local DNS servers, so I can't resolve any hostnames on my local LAN. The ...
user avatar
  • 5,806
3 votes
1 answer
206 views

Where is that 1.1.1.1 NS coming from?

I was checking systemd-resolve --status that returns Global DNS Servers: 1.0.0.1 <------------- 1.1.1.1 <------------- DNSSEC NTA: 10.in-addr.arpa ...
user avatar
  • 602
0 votes
1 answer
451 views

systemd-resolved+VPN: 2nd DNS server ignored (L2TP)

I'm connecting to a corporate VPN via network-manager-l2tp with a pre-shared key and user+pass. I'm getting a correct DNS server IP automatically, which resolves the companies URLs correctly. However, ...
user avatar
  • 105
3 votes
1 answer
224 views

Domain names ending with .local not resolved

I have a strange problem resolving .local hosts on my linux (ubuntu) desktop. (I noticed that because my printer stops working. I figured out that the IP address of the printer is resolved using mdns ...
user avatar
  • 41
1 vote
0 answers
355 views

Linux Mint 20.2 DNS not resolving internal hosts

Clean install of Linux Mint Uma (20.2) yesterday. All is well except for local network DNS resolution. I have dnsmasq running on a Pine64 primarily so that I can use Steven Black's block list. It has ...
user avatar
1 vote
1 answer
290 views

APT - temporary failure in name resolution error

I have a really annoying & confusing issue about domain name resolution, focused only on apt/apt-get utility. When I try apt update, it gives me (sorry in french) root@myhostname:~# apt update Err ...
user avatar
  • 111
0 votes
1 answer
286 views

Fedora 33 OpenVPN DNF Leak with "systemd-resolved"

I upgraded from Fedora 32 to 33. Apparently 33 changes the default DNS resolver. The result is that attempting to use an OpenVPN connection leaves DNS Leaks. I'm using PIA as the vpn. My ".ovpn&...
user avatar
0 votes
0 answers
115 views

dnsmasq container on ARM OMV5

Would like to ask for your help with something i'm working on these days. I'm running Openmediavault 5 on an ODROID HC2 (ARM). It uses systemd-resolve. I use docker containers and access everything ...
user avatar
0 votes
0 answers
501 views

Systemd service is unable to resolve host (temporary failure in name resolution), but the root user is able to

I have a systemd service that runs a script that checks my wireguard connection. The service file looks like this: [Unit] Description=Check the wg status and restart it if necessary After=network-...
user avatar
  • 101
0 votes
1 answer
459 views

Configure split DNS resolver to always use VPN-internal nameserver for fixed list of domains

What's the most reliable configuration to have a fixed list of internal domains always resolved through an internal nameserver, even if it's unreachable because the VPN is down, while still using the ...
user avatar
  • 5,625
0 votes
1 answer
757 views

resolvectl query fails: 'domain' does not have any RR of the requested type

Lately systemd-resolved fails to resolve most domains with the following error: $ resolvectl query slashdot.org slashdot.org: resolve call failed: 'slashdot.org' does not have any RR of the requested ...
user avatar
0 votes
1 answer
157 views

DNS server selection between two LAN interfaces

I have an box running Ubuntu 18.04.4. There are two LAN interfaces enp3s0 and eno1: the former is connected to a 3G modem on LAN network and the latter is connected to a satellite modem on another ...
user avatar
  • 13
1 vote
0 answers
187 views

Systemd-resolved service stopping unexpectedly

Almost every day, sometimes more than once a day, Systemd-resolved crashes on my fedora machine. Output: https://pastebin.com/sgN3C0BU (I removed some stuff which I did not know if it was safe to ...
user avatar
  • 111
2 votes
0 answers
36 views

How to configure systemd-resolved to use chosen DNS servers on public wifi

When I'm at home or at work I'd like my laptop to accept the DNS servers offered by the DHCP server but when I'm on a public wireless server at a cafe or coffee place, I'd prefer to use DNS servers I ...
user avatar
0 votes
1 answer
102 views

DNS resolution not working after avahi installation

I installed and set up avahi and nss-mdns according to Arch wiki (I'm on Arch) and disabled systemd-resolved's multicast dns, but now dns resolution fails on my machine entirely. I then tried ...
user avatar
0 votes
1 answer
174 views

How to reset DNS to its default after changing it with systemd-resolve?

I'm using Xubuntu 18.04. AFAIK, DNS could be changed with sudo systemd-resolve -i wlp3s0 --set-dns="xxx-yyy-aaa-bbb". Now, how can I revert it back to the default state? Before setting it, ...
user avatar
2 votes
0 answers
799 views

Why is resolvectl missing from CentOS 7

I've got a Linux system (Centos 7) on a LAN with about 70 Windows machines, but the Windows machine names are not in the DNS. I'm trying to use LLMNR (Link-Local Multicast Name Resolution) to resolve ...
user avatar
1 vote
0 answers
61 views

Tool to manage and set right domain resolution

This horror story began a week ago when after an update, my Arcolinux install started behaving erratically and some sites (at random) won't open (they would after I left them for a while and tried ...
user avatar
2 votes
0 answers
149 views

systemd-resolved's ResolveUnicastSingleLabel setting does not seem to work with non-search domains

ResolveUnicastSingleLabel=yes still does not seem to solve the problem of non-fully-qualified domain names (NFQDN) not being resolved. I use a single wireguard tunnel to my corporate network (with ...
user avatar
  • 121
0 votes
1 answer
59 views

Use DHCP provided DNS servers but use specific servers for specific domains

Long story short, my country is censoring some websites by forcing ISPs to configure their DNS servers to not return the correct answer when queried about specific domains. For various reasons, I want ...
user avatar
  • 1
2 votes
2 answers
7k views

How to correctly disable systemd-resolved on port 53 for avoiding clash with dnsmasq in Ubuntu 20.04…?

I'm trying to use dnsmasq on Ubuntu 20.04 and I get a port clash on port 53 with systemd-resolved. So I've found a few suggestions on solutions, but they seem to be dated or not applicable to my case. ...
user avatar
2 votes
1 answer
140 views

host command takes a long time on .local queries

I'm using systemd-resolved configured for mDNS. host command takes a long time on .local queries. Example: $ time host blah.local ;; connection timed out; no servers could be reached real 0m10....
user avatar
2 votes
1 answer
3k views

Remove a DNS server from systemd-resolved?

I have connected to an openconnect VPN like thing, and it has added a DNS server (& DNS domain) to my systemd-resolved, and they don't work, so using the internet is slowed down, because every new ...
user avatar
  • 1,027
-1 votes
1 answer
164 views

linux + test dns resolving of hosts/ip's but without to wait a long time

we want to test , fast as possible the hosts/ip's resolving for example when we do the following host -a linux1 Trying "linux1.df.com" ;; connection timed out; no servers could be reached ...
user avatar
  • 10.9k
2 votes
1 answer
482 views

How to properly enable DNSoverTLS on Systemd

I came across this strange problem the other day. I enabled DNS over TLS(DoT) months ago on my laptop. My laptop had been sitting at home until I decided to take it with me to town. Recently I ...
user avatar
1 vote
1 answer
2k views

Setting domains in resolvectl results in timeouts

For some reason I can't manage to set domains for resolvectl. Either I don't understand what it does at all or something is weird for me. Once I set a domain e.g. sudo resolvectl domain enp2s0 example....
user avatar
2 votes
0 answers
175 views

How do I (correctly) manage/update search domains with systemd?

I have a system (running Ubuntu 20.04) with multiple network interfaces and I realized that the search domains (I'm looking at /etc/resolv.conf, which I know is just a symlink to a systemd-resolved ...
user avatar
5 votes
0 answers
609 views

systemd-resolved browse for mdns services

Can systemd-resolved be used to browse for mdns services the same way like avahi-browse? For example: $ avahi-browse _smb._tcp + eno1 IPv6 PC1 Microsoft Windows ...
user avatar
1 vote
0 answers
1k views

How to disable IPv6 short hostname resolution

For a long time I've been able to SSH to other hosts on my network just with the short name, e.g. ssh otherpc and it recognises it's a short name, adds the DNS search suffix, does a lookup for otherpc....
user avatar
  • 5,806
10 votes
1 answer
7k views

What is the difference between resolvconf, systemd-resolve, and avahi?

I'm currently working on a project that has required some DNS troubleshooting, however I am fairly new to the wonderful world of networking and am at a bit of a loss as to where to begin. My specific ...
user avatar
0 votes
1 answer
457 views

systemd-resolved attaches DNS domain to query

I connect to a remote VPN using NetworkManager and the openconnect (Cisco Anyconnect) pluging under Xubuntu 20.4. All works fine, except DNS resolution of services inside the VPN. The remote VPN ...
user avatar
  • 101
0 votes
2 answers
525 views

How do you block network acceess to systemd?

How would one quarantine any systemd processes from ever using ANY network interface or resources at OS-level? Overview Minimalistically, I'd like to setup a Linux gateway. Simple NAT, forwarding ...
user avatar
18 votes
1 answer
43k views

Override Ubuntu 20.04 DNS using systemd-resolved

How do I configure an Ubuntu 20.04 system so it overrides the default DNS? It seems that by default there is a global and per-link DNS setting. I tried a couple of things that did not work: Edit /...
user avatar
2 votes
0 answers
402 views

per-link (VPN) systemd-resolved configuration but keep link unmanaged by systemd-networkd

Background I manage my WLAN interface through systemd-networkd and use systemd-resolved for the whole system. I have several VPN connections managed by OpenVPN or Openconnect. I have them properly ...
user avatar
1 vote
1 answer
1k views

Reverse Lookups to Local DNS Server Failing on Ubuntu 18.04

On Ubuntu 16.04 REVERSE lookups to a local DNS/DHCP bind9 server on the local network are SUCCESSFUL, while on the other hand, on Ubuntu 18.04 (and higher) the REVERSE lookups FAIL. All systems are ...
user avatar
2 votes
2 answers
661 views

Make systemd-resolved ignore a DNS server and only use the one I specify

I am experiencing an issue with DNS and to help narrow down the problem, I have been asked to configure my machine's DNS settings manually, only specifying one DNS server instead of the two returned ...
user avatar
  • 5,806
1 vote
0 answers
703 views

systemd-resolved add option rotate Ubuntu 18.04

I'm trying to add options rotate to my resolv.conf on Ubuntu 18.04 LTS upgrade Ubuntu 16.04 LTS: /etc/resolv.conf -> ../run/resolvconf/resolv.conf handled just by adding options rotate to /etc/...
user avatar
  • 173
0 votes
0 answers
23 views

system-resolvd starts using local nameserver as DNS whenever network is not available

I have an IoT device that is connected to a node via a local wireless network. After doing the computations, the device tries to posts the data to the cloud. The device is connected to the internet ...
user avatar
0 votes
1 answer
237 views

how are DNS servers selected in system-resolved?

The man page of resolved.conf for system-resolved states that if DNS= is set, "DNS requests are sent to one of the listed DNS servers". How is that server selected? Is that a round-robin? a random ...
user avatar
3 votes
1 answer
4k views

Why is my stub-resolve.conf missing?

I'd like to start using systemd-resolved on Oracle Linux 7.6. I've installed systemd-networkd and systemd-resolved. I've enabled these services and I've disabled network and NetworkManager. From the ...
user avatar