Questions tagged [systemd-resolved]

Systemd Network Name Resolution manager

Filter by
Sorted by
Tagged with
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 ...
Little Code's user avatar
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 ...
trenchweather's user avatar
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 ...
Oleksa's user avatar
  • 141
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 ...
TPPZ's user avatar
  • 455
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 ...
Rolle's user avatar
  • 283
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; }; ...
nleanba's user avatar
  • 121
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 ...
TheDiveO's user avatar
  • 1,217
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/...
parsley72's user avatar
  • 269
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 --...
Dave's user avatar
  • 542
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-...
some bits flipped's user avatar
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....
Soren G.'s user avatar
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)...
Sam's user avatar
  • 1
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....
larsks's user avatar
  • 32.8k
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 ...
Garen Vartanian's user avatar
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'...
Life Whiz's user avatar
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 ...
Garen Vartanian's user avatar
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 ...
Garen Vartanian's user avatar
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 ...
rjt's user avatar
  • 377
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. ...
Augier's user avatar
  • 101
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?
ZacWolf's user avatar
  • 161
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 ;; ...
Brent Baccala's user avatar
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 ...
mpb's user avatar
  • 1,511
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/...
Marcin Król's user avatar
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 ...
Finch's user avatar
  • 135
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 ...
ustulation's user avatar
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:...
Spokane_is_actually_kinda_okay's user avatar
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 ...
ArenaLor's user avatar
  • 141
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 ...
Zhro's user avatar
  • 2,505
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 ...
Xavier Humbert's user avatar
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 ...
ncomputerz's user avatar
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 ...
abu obaida's user avatar
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 ...
IpsRich's user avatar
  • 747
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: ...
Oomph Fortuity's user avatar
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 ...
mpb's user avatar
  • 1,511
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 ...
nobody's user avatar
  • 1,555
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 ...
RaceBase's user avatar
  • 263
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 ...
David D.'s user avatar
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: $ ...
John Spencer's user avatar
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 ...
neildeadman's user avatar
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 ...
JediWombat's user avatar
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 ...
Sid Sun's user avatar
  • 31
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-...
Dakatine's user avatar
  • 231
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 ...
Déjà vu's user avatar
  • 626
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, ...
freeo's user avatar
  • 105
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 ...
Sven K.'s user avatar
  • 41
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 ...
bo gusman's user avatar
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 ...
Damien C's user avatar
  • 111
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&...
user10216038's user avatar
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 ...
steakhutzeee's user avatar
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-...
A_toaster's user avatar
  • 101