Questions tagged [systemd-resolved]

Systemd Network Name Resolution manager

Filter by
Sorted by
Tagged with
2
votes
1answer
33 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
11 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 ...
1
vote
1answer
76 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
63 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 ...
0
votes
0answers
96 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
102 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....
1
vote
0answers
51 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 ...
1
vote
0answers
44 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
63 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
17 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 ...
1
vote
1answer
283 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
66 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
47 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 ...
0
votes
1answer
3k 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 /...
1
vote
0answers
81 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
261 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 ...
0
votes
1answer
79 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 ...
0
votes
0answers
207 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
20 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
46 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
279 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 ...
0
votes
0answers
141 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. ...
2
votes
0answers
806 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 ...
1
vote
0answers
299 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
252 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 ...
6
votes
0answers
1k 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
310 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 ...
1
vote
0answers
629 views

Enable systemd-resolved DNSStubListener respond to LAN queries

Yes, I know you aren't supposed to use resolved as DNS despite it hogging the relevant ports. But I have a requirement that I can't elaborate and use resolved as the DNS for the VMs on my host. What ...
0
votes
1answer
547 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
135 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
2answers
3k 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
2k 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
234 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 / ...
5
votes
1answer
5k 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
823 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
1k 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 ...
2
votes
1answer
276 views

do “search domain” in networkd configuration and LLMNR conflict?

in networkd man page, the search domains are used to handle single-label names: The domains without the prefix are called "search domains" and are first used as search suffixes for extending single-...
6
votes
2answers
1k views

How single-label dns lookup requests are handled by systemd-resolved?

I looked into the systemd-networkd and systemd-resolved: systemd.network(5) on manpages.ubuntu.com systemd-resolved.service(8) on manpages.ubuntu.com and I am confused by some words: systemd-...
6
votes
2answers
1k views

systemd-resolved block a domain name

Using systemd-resolved how do I block, route, or resolve, a domain name to a black hole, or a nowhere address. Bonus points for subdomains as well. I tried a single domain in /etc/hosts: 127.0.0.1 ...
0
votes
1answer
336 views

Some web sites can not be reached [closed]

With my laptop running an arch-linux I can not access some websites when I am at home like for example: https://www.wikipedia.org/ https://wiki.archlinux.org/ https://www.leo.org/ But I can access ...
6
votes
2answers
7k views

How to make systemd-resolved stop trying to use offline DNS servers?

I have configured my DHCP server to supply two nameservers for redundancy, so that if one is offline the other one can be used. I have configured my PCs with systemd-resolved and according to ...
0
votes
0answers
212 views

systemd-resolved - how to stop forwarding and go direct to DNSBLs / RBLs (mailserver blacklists)

My mailserver needs to check IPs of incoming connections against external blacklists, this is done by a DNS lookup but it must go direct to the blacklist and not via the usual configured DNS ...
1
vote
1answer
2k views

DNS is not applied with systemd-resolved [closed]

I'm using Kubuntu 18.04. When I'm in the office network, everything works fine, but when I connect to any other network (wired of wifi) I don't get proper DNS names - the old ones are still in systemd-...
8
votes
4answers
11k views

How to configure systemd-resolved for mdns multicast dns on local network?

Ubuntu 18 I've done a ton of research and am close to pulling this picture together but can't quite understand: How can I configure systemd-resolved for mdns? My goal specifically: to bring up a ...
1
vote
1answer
514 views

Why does systemd-networkd consider UseDomains= (domain search list from DHCP) less safe than LLMNR?

UseDomains= Takes a boolean argument, or the special value "route". When true, the domain name received from the DHCP server will be used as DNS search domain over this link, similar to the ...
11
votes
2answers
5k views

How to allow systemd-resolved to listen to an interface other than loopback?

systemd-resolved is a daemon that, among other things, acts as a DNS server by listening IP address 127.0.0.53 on the local loopback interface. I would like to let the daemon listen to another ...
44
votes
3answers
67k views

How to configure systemd-resolved and systemd-networkd to use local DNS server for resolving local domains and remote DNS server for remote domains?

I'm connected to local area network with access to the Internet through gateway. There is DNS server in local network which is capable of resolving hostnames of computers from local network. I would ...
3
votes
1answer
384 views

systemd version 219 from CentOS 7 listening on random UDP port

Why does systemd-resolved from systemd version 219 listen on one random UDP port? One of my machines listens on port 58557 (CentOS 7 with systemd version 219). sudo netstat -tunlp|grep -P '^Active|^...
5
votes
1answer
5k views

Clarifying four modes of handling /etc/resolv.conf in systemd-resolved

I have read about systemd-resolved.service https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html and learnt four modes of handling /etc/resolv.conf. /run/systemd/resolve/stub-...
1
vote
1answer
2k views

Default DNS server settings

I recently updated my Ubuntu which ended in a shot DNS config. I am able to add a nameserver to /etc/resolvconf/resolv.conf.d/tail (and restart the service) to get DNS resolution for everything ...