Questions tagged [systemd-resolved]

Systemd Network Name Resolution manager

Filter by
Sorted by
Tagged with
0
votes
1answer
29 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 ...
0
votes
1answer
68 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 ...
0
votes
0answers
238 views

systemd-resolved: Use DNS over TLS only for some DNS servers

For any dns query, I want systemd-resolved to first query 100.100.100.100 for the domain without using DNS over TLS and if this fails, it should query the nextdns server using DNS over TLS. I have ...
0
votes
1answer
15 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 ...
1
vote
0answers
71 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 ...
0
votes
0answers
21 views

DNS and FallbackDNS only apply globally, not per link

I'm trying to set up systemd-resolved to use DNS over TLS and DNSSec. After editing /etc/systemd/resolved.conf and restarting both systemd-resolved and NetworkManager, resolvectl status shows that ...
2
votes
0answers
26 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 ...
0
votes
1answer
23 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 ...
0
votes
1answer
48 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, ...
2
votes
0answers
156 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 ...
1
vote
0answers
50 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 ...
2
votes
0answers
63 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 ...
0
votes
0answers
48 views

how to add my own dns server to systemd managed resolv.conf?

On ubuntu 20.04, I have a dnsmasq processing running on one of my interface has ip 192.168.122.1. If I directly add nameserver 192.168.122.1 to the /etc/resolv.conf it works. If I use dig @192.168.122....
0
votes
1answer
29 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 ...
2
votes
2answers
2k 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. ...
2
votes
1answer
54 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....
0
votes
0answers
26 views

systemd-resolved when default route is via VPN

With the (abbreviated) ifconfig below, I sometimes temporarily change the default route to use tun1 instead of enp2s0 - using the ip route command. But I assume that systemd-resolved continues ...
2
votes
1answer
739 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 ...
-1
votes
1answer
106 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 ...
1
vote
1answer
258 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 ...
1
vote
1answer
683 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....
2
votes
0answers
84 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 ...
2
votes
0answers
138 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 ...
1
vote
0answers
679 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....
0
votes
0answers
57 views

Using systemd-resolved to resolve separate DHCP-derived domains

So this is a slightly weird setup, but I feel this should be possible to accomplish. I'm just not sure how to make systemd-resolved do what I want it to do here. I have two separate DHCP-derived ...
3
votes
1answer
3k 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 ...
0
votes
1answer
247 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 ...
0
votes
2answers
143 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 ...
13
votes
1answer
16k 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 /...
2
votes
0answers
201 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 ...
0
votes
1answer
915 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 ...
1
vote
1answer
161 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 ...
1
vote
0answers
410 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/...
0
votes
0answers
22 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 ...
0
votes
1answer
84 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 ...
1
vote
1answer
1k views

Where's 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 ...
2
votes
1answer
293 views

Prevent NetworkManager from setting ~. search domain per-link on systemd-resolved

I'm trying to use the DNS over at /etc/systemd/resolved.conf in their capacity as DNS over TLS providers, but NetworkManager somehow manages to set ~. as search domain on the connections it sets up. ...
3
votes
0answers
2k views

How to set systemd-resolve DNS servers?

Ubuntu 18.04 is not respecting local configuration anymore. Since I cannot have my DHCP server advertising anymore the DNS servers, I want to set up the clients manually (LXD containers). I tried to ...
2
votes
0answers
506 views

On Ubuntu 18.04 what is the way to remove dnsmasq and systemd-resolved and switch to resolv.conf

I noticed that with introduction with the combo of systemd-resolved and dnsmasq in Ubuntu 18.04 network connectity is becoming a luxury feature. What is the correct way to remove these components in ...
5
votes
1answer
431 views

Going all-in on DNSSEC

I have been doing an effort to go full on DNSSEC on my system with the following setup: dnscrypt-proxy installed, up and running on 127.0.0.1 with require_dnssec = true systemd-resolved running, with ...
12
votes
1answer
3k views

What's the difference between /run/systemd/resolve/stub-resolv.conf and /run/systemd/resolve/resolv.conf?

For configuring custom DNS servers in a brand new Kubuntu 19.10 laptop it wasn't enough with adding to /etc/systemd/resolved.conf: DNS=77.88.8.7 77.88.8.3 #Yandex's DNS with no porn even on Google ...
0
votes
1answer
647 views

Network problems after system reboot - Ubuntu 18.04 Server

I have a problem with one of my Ubuntu 18.04 servers. After a recent power cut, I can no longer connect to it from outside the network. I'm currently SSHing to it through another server in my ...
0
votes
1answer
772 views

Configuring Stub Resolver in RHEL 8: systemd-resolved not caching DNS queries

In RHEL 8, systemctl list-unit-files|grep resolved reports that systemd-resolved is both present and running by default. However, systemd-resolve --statistics shows no name:ip mappings are being ...
2
votes
1answer
172 views

DNS: a “short” query (UDP) does not return an address, but a “long” (ANY, TCP) query does

This is a companion to an AskUbuntu question I posted before I had learned enough to ask this question. (This is for Ubuntu 18.04) By watching the debug output from systemd-resolved, I can do ...
7
votes
3answers
6k views

How do you remove bad DNS server IPs from systemd-resolved?

So I was testing a router and it added some random IPv6 addresses to all the machines on my network, including my DNS server. Somehow those IPs were broadcasted around as valid DNS servers (not sure ...
10
votes
2answers
3k views

What is the recommended way to set a global DNS server override on a system using systemd-resolved?

I would like my newer GNU/Linux system (Ubuntu 18.04 LTS) to use a single, manually-configured, DNS server for all DNS queries. In the past, I could simply do echo "nameserver 1.1.1.1" | sudo tee /etc/...
0
votes
1answer
339 views

systemd-timesyncd not starting with /var set as a rw ubifs volume

I am running debian with systemd version 241. I have a nand flash ubifs partition for my rootfs that I have split into two volumes (/dev/ubi0_1 for rootfs and /dev/ubi0_2 for var): ubi0:rootfs on / ...
9
votes
2answers
8k views

What are DNS server, resolver and stub resolver?

https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#Description says Additionally, systemd-resolved provides a local DNS stub listener on IP address 127.0.0.53 on the ...
5
votes
0answers
1k views

Why is systemd-resolved falling back to using Google Public DNS over IPv6 when I did not configure it to do that?

I'm having problems with SystemD's resolved service on Ubuntu 18.10 - on my wireless network we have an IPv6 subnet that is tunneled through some weird network setup (work stuff) and can't be used for ...
0
votes
1answer
2k views

Update of /etc/resolve.conf needs restart of application

I am working with an embedded linux Target (ARM) and have the following problem: When /etc/resolv.conf is updated, while a process is running (e.g. C Program using gethostbyname()) the running process ...