Questions tagged [systemd-resolved]
Systemd Network Name Resolution manager
115
questions
0
votes
0
answers
11
views
How to stop cloud-init setting "Domains=" in networkd config?
I am using cloud-init on Debian with networkd for renderer and activator tasks.
Is there a way to stop cloud-init adding Domains= to the generated systemd-networkd config file ? i.e.
cloud-init ...
0
votes
1
answer
25
views
How to remove DNS options from systemd-resolve
I'm unsure how to change the list of DNS options that resolvconf finds when connecting. systemd-resolve --status outputs
Global
Protocols: -LLMNR -mDNS +DNSOverTLS DNSSEC=no/unsupported
...
0
votes
0
answers
34
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 vice versa and I am getting in systems notifications ...
0
votes
1
answer
411
views
How do I permanently configure the DNS resolution in Ubuntu for ALL programs/layers for specific interfaces
Is there a way I can permanently set the DNS preference of my Ubuntu laptop for specific network interfaces?
I am relying on a wifi network that is not that predictable.
I don't have access to the ...
0
votes
0
answers
39
views
Setting global DNS via systemd-resolve CLI
Is there any way to set a global (not per interface) DNS server using the systemd-resolve command line tool? From the help it does not seem like this (--set-dns requires an interface). The usecase I ...
1
vote
1
answer
87
views
How do I get BIND (DNS) to be authoritative about a tld for more than a minute
I tried to block the .zip TLD on my laptop (running fedora 38) with bind.
Installing bind
Updating named.conf:
options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
...
1
vote
1
answer
105
views
systemd networkd and/or resolved blocking receiving (raw) packets on virtual network interface?
While working on some unit test code that basically sends raw Ethernet packets from one MACVLAN to another MACVLAN (virtual) network interface I noticed that most of the time the test code fails to ...
2
votes
0
answers
205
views
How do I symbolically link /etc/resolv.conf to /var/run/systemd/resolve/stub-resolv.conf in Yocto
I'm trying to setup a Yocto build using NetworkManager v1.22.16 and systemd 244.5. systemd-resolved - /etc/resolv.conf recommends I setup /etc/resolv.conf as a symbolic link to /var/run/systemd/...
0
votes
0
answers
1k
views
How to install systemd-resolved on centos7 and use systemd-resolve
I installed systemd-resolved on centos 7.9 with yum install systemd-resolved. This worked, and I am able to run systemctl start systemd-resolved.service. But when I try to run sudo systemd-resolve --...
0
votes
1
answer
325
views
understanding dns under systemd/networkmanager
I am not understanding why my pc wasn't able to resolve names until I manually deleted a stale nmcli device entry.
Description/steps:
ubuntu 22.04 desktop, which uses network-manager and systemd-...
2
votes
1
answer
2k
views
How can I make NetworkManager use the global DNS settings from systemd-resolved for all interfaces?
I'm on Ubuntu 22.04
I've set some custom DNS servers in /etc/systemd/resolved.conf (systemd-resolved)
I'm also using NetworkManager.
The servers set in /etc/systemd/resolved.conf are 1.1.1.1 and 1.0.0....
0
votes
1
answer
811
views
Failed to open configuration file '/etc/systemd/resolved.conf': Permission denied
systemctl status systemd-resolved.service returns
systemd-resolved.service - Network Name Resolution
Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)...
3
votes
0
answers
657
views
Correctly configuring split dns with systemd-resolved?
I would like requests for hosts in the example.com domain to go to a local DNS resolver hosted at 172.31.64.1, and all other requests to be handled by the default resolvers.
The resolver at 172.31.64....
0
votes
0
answers
74
views
Network Connection tls-over-dns option not working
I'm running Fedora 36 and have set my systemd resolve.conf dns tls setting to true as DNSOverTLS=yes. This disrupts access to my favorite public wifi, as the captive portal fails to provide a login ...
0
votes
1
answer
307
views
Facing issue with systemd-resolved after update
I recently updated my system, but noticed that on reboot, systemd-resolved always fails. So I cannot access any websites even though I have internet connection.
I have included an error message that I'...
0
votes
0
answers
159
views
Configure global dns connection with systemd-resolve/NetworkManager and only override on specific connections
I've configured dns in /etc/systemd/resolved.conf in order to set global values for dns and enable security features like DoT. Unfortunately, certain networks that I use like coffeeshops require that ...
0
votes
1
answer
266
views
How to query outgoing DNS IP targeted by local DNS server?
How can you test to see which DNS ip your local dns server, eg., 127.0.0.53:53, targets without relying on wireshark?
I've tried multiple tools including resolvectl status. However, it prints both a ...
0
votes
1
answer
136
views
Why does pgrep not find systemd-resolved?
#!/usr/bin/env bash
echo "pgrep not finding systemd-resolved has bitten many times."
if [ -z $(pgrep systemd-resolved) ]; then
echo -e "systemd-resolved not found by pgrep, trying ...
0
votes
1
answer
1k
views
Configure systemd-resolved to use local bind first and DHCP-provided DNS as fallback
I'm using Fedora 36 as my everyday desktop machine and I try to do something that I though was fairly simple but I can't find another person on the net providing a proper configuration for this.
...
1
vote
1
answer
2k
views
How to configure OpenVPN client to use different DNS servers when connected
How to configure a Debian-based build with systemd, such that when connected to my VPN provider via an OpenVPN client, the system uses the DNS servers of the VPN provider?
0
votes
2
answers
2k
views
Why would nslookup return a response, then timeout?
Here's what my nslookup is doing:
ubuntu@ca:~$ time nslookup focal-250
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: focal-250.test
Address: 128.8.8.187
;; ...
0
votes
0
answers
219
views
Can systemd-resolved provide DNS service to multiple network namespaces?
Can systemd-resolved provide DNS service to multiple network namespaces? If yes, then how?
Running on Ubuntu 22.04, I've created a network namespace named foo. I've created and configured an ipvlan ...
4
votes
1
answer
224
views
Systemd-resolved setting unexpected DNS list
When I connect to my phone hotspot I would expect systemd-resolved to use the 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/...
1
vote
1
answer
2k
views
How do I disable the "cache" for systemd-resolved?
I am using another dns resolver, blocky and using it with systemd-resolved. blocky already has features like caching and prefetching. So I don't want systemd-resolved running a cache and messing with ...
1
vote
0
answers
229
views
Per interface DNS vs per domain DNS
I need to switch over to systemd-resolved because software (twingate client if it matters) that I need to use doesn't work with openresolv which I had been using. Reading about it, I've been ...
18
votes
1
answer
6k
views
DNS broken when using ifupdown and systemd-resolved after upgrade to Ubuntu 22.04
TL;DR
sudo cp -p /etc/network/if-up.d/resolved /etc/network/if-up.d/.resolved.broken-orig
#Edit /etc/network/if-up.d/resolved and take out the extraneous quotes on lines 48 and 52
#The fix looks like:...
1
vote
1
answer
2k
views
systemd-resolved as mDNS responder
I'm creating a custom distribution where I need a DNS responder. I'm already using systemd so I would like to use systemd-resolved to manage mDNS (the device should announce itself as capable of a ...
2
votes
1
answer
1k
views
Unable to resolve domain names after router upgrade. How do I correct this DNS configuration failure with systemd-resolved?
I upgraded my internet router today and found that my Linux system running Fedora 36 can no longer perform DNS name resolution. I also have Android devices, Windows 10, Windows 11, and CentOS 7.9 ...
2
votes
0
answers
482
views
Remove bogus DNS from resolvectl status
I use openconnect to join a VPN. On disconnection, the DNS remain alongside with mine in Global section, which causes a delay in network queries :
Global
Protocols: -LLMNR -mDNS -DNSOverTLS ...
1
vote
0
answers
693
views
systemd-resolved stub resolver is dropping connections, and not responding to queries. Why is this?
I'm having some issues getting DNS Over TLS configured natively using systemd's resolved.
My steps to configure:
modify my /etc/systemd/resolved.conf file (this can be seen below)
restart resolved ...
1
vote
1
answer
666
views
Problem with creating wifi-hotspot with with hostapd and dnsmasq
OS: Pop!_OS 22.04 LTS (64 bit)
I am trying to create an access point on my laptop and connect my android phone to it. My phone connects, shows Obtaining IP Address, and disconnects immediately. I ...
1
vote
1
answer
722
views
"Failed to get global data: No buffer space available" on running "systemd-resolve --status"
I'm on Mint 20.3 (based on Ubuntu 20.04) and I keep having this weird problem where my network is all working fine and then suddenly, apparently out of the blue, it stops working and I can't access ...
1
vote
1
answer
3k
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:
...
0
votes
1
answer
154
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
814
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 ...
1
vote
1
answer
640
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 ...
1
vote
1
answer
2k
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:
$ ...
0
votes
1
answer
1k
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 ...
0
votes
0
answers
55
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 ...
0
votes
1
answer
8k
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 ...
2
votes
0
answers
473
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-...
3
votes
1
answer
451
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
...
0
votes
1
answer
937
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, ...
3
votes
1
answer
2k
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 ...
1
vote
0
answers
615
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 ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
561
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&...
0
votes
0
answers
196
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 ...
0
votes
1
answer
1k
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-...