Skip to main content

Questions tagged [systemd-resolved]

Systemd Network Name Resolution manager

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

Host name resolution fails on Fedora 39 system

One of my Fedora systems will often fail to do DNS resolution. Both ping host.ext and nslookup host.ext fail. When I edit /etc/resolv.conf to use nameserver 1.1.1.1 instead of nameserver 127.0.0.53, ...
Lars Poulsen's user avatar
0 votes
0 answers
21 views

Custom dns resolver isn't specific to Domain

I have a custom DNS resolver, similar to how Consul provides DNS. They have you set systemd-resolved like so. # File /etc/systemd/resolved.conf.d/consul.conf [Resolve] DNS=127.0.0.1:8600 DNSSEC=false ...
fideloper's user avatar
  • 101
0 votes
0 answers
56 views

nslookup outputs SERVFAIL error from configured local DNS

I was watching a YouTube tutorial on configuring Nginx and local DNS settings. As I followed along on my Ubuntu 22.04 host machine, I ran into an issue with the DNS server I had set up with Docker per ...
juanthehuman's user avatar
0 votes
1 answer
27 views

ISP Search Parameter in resolve.conf

I will try to explain this right, not a linux guru! About a week ago suddenly started getting a 401 when sending requests, seems that on our kubernetes cluster when it hits the one node that has a ...
Julie's user avatar
  • 1
1 vote
0 answers
37 views

minikube and ingress-dns issues with fedora and virtualbox?

I followed that setup instructions (I'm new to K8s) https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/ I enabled ingress-dns and that Ok. I added dns=dnsmasq in NetworkManager.conf I ...
thiebaut fischer's user avatar
0 votes
1 answer
203 views

Fedora - systemd-resolved

I'm an old school linux guy, and I will say I'm not a fan of systemd, but I'm trying to evolve because it's here to stay. Network management is killing me. My goal is simple. I don't need a caching ...
EricAiken's user avatar
0 votes
1 answer
707 views

systemd-resolve not using DNS from DHCP

My Ubuntu client is still using an OLD DNS in systemd-resolve. When I run systemd-resolve --status I find old and new DNS. The new DNS has been set using DHCP scope options on my network. I've ...
N. J's user avatar
  • 157
0 votes
1 answer
201 views

Should Linux resolver fail back to primary DNS server when it's available?

Maybe this is a dumb question but should Linux DNS resolver prefer primary DNS server over secondary and primary or is it free to use any of them? I have a pretty standard ubuntu 20.04 LTS image with ...
fakej Gazeta.pl's user avatar
0 votes
0 answers
135 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
467 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
101 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
  • 151
2 votes
1 answer
12k 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
  • 517
0 votes
0 answers
105 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
138 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
229 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,317
2 votes
0 answers
375 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
  • 289
0 votes
0 answers
3k 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
  • 601
0 votes
1 answer
670 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
3 votes
1 answer
3k 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
1k 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
4 votes
0 answers
1k 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
  • 34.9k
0 votes
1 answer
551 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
1 answer
497 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
198 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
1 vote
1 answer
2k 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
  • 111
1 vote
1 answer
3k 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
3k 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
4 votes
1 answer
333 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
2 votes
1 answer
4k 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
  • 145
1 vote
0 answers
357 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
19 votes
1 answer
7k 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
3 votes
1 answer
3k 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
  • 181
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,669
2 votes
0 answers
602 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
958 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
947 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
1k 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
  • 767
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
198 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,611
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,710
0 votes
0 answers
1k 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
  • 273
1 vote
1 answer
870 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
1 vote
1 answer
2k 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
169 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
9k 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
641 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
540 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
1k 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