Questions tagged [resolv.conf]
38 questions
50
votes
1 answer
Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found
I am using manjaro / arch linux and I see the following error messages in my system log.
journalctl -f
...
dbus-daemon[798]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service'…
nelaaro
- 14,139
- 30
- 88
- 115
14
votes
4 answers
How to persist “systemd-resolve” configuration for a particular network interface?
I have upgraded my Ubuntu Desktop to Bionic Beaver, which switched to systemd-resolve. With that change, the LXD DNS resolution stopped working.
In order to make LXD containers discoverable, I can run the below command. Note, the IP 10.78.38.1 is…
quat
- 471
7
votes
3 answers
nslookup failed but systemd-resolved works
This is a strange problem I've spent all day on. It would be great if someone could shed some light on this.
The problem exhibits as a problem with name resolution, but I'm not sure that's the root cause:
# host www.google.com
;; connection timed…
6
votes
2 answers
Bind on different port with linux
I have a bind9 DNS server that I have configured to run in port 55 but I can't get the setup working.
The server is works fine but I can't tune my local machine to resolve nameserver queries from 127.0.0.1, port 55
Example:
dig -p 55…
Mini Fridge
- 212
5
votes
2 answers
Rewrite (redirect?) subdomain requests to another subdomain (both domains not in my control)
There's a site I frequently visit that makes use of several CDN domains and subdomains. One of these CDN subdomains recently stopped working for some reason, and it is affecting others, not just me.
I noticed that requests…
insaner
- 385
3
votes
2 answers
Does cURL try all nameservers from resolv.conf?
There are several nameserver entries in my /etc/resolv.conf, some public and some are my own:
search subdomain.example.com
nameserver 8.8.8.8
nameserver 10.20.30.1
nameserver 10.20.30.2
I want cURL to load a file from an address, that only my own…
berger-devel
- 47
2
votes
1 answer
Kubuntu 20.04, Wireguard and systemd-resolved DNS leak
Fresh install of Kubuntu 20.04 (uses systemd-resolve by default) with Wireguard installed. I have a wg tunnel (going through a wifi interface wlp0s20f3) and all traffic is supposed to route through that tunnel and almost all of it does. However, DNS…
2
votes
1 answer
How to I deal with this error in Docker pull (Llinux) "request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
When trying to pull docker containers from I am confronted with this error:
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded…
Vincent
- 21
2
votes
1 answer
Docker can't resolve hosts which require multiple nameservers
I'm running a Docker container which clones some git repositories and builds a project inside of itself.
It clones code from 2 different repositories: one is public github.com and the other one is private my.companys.github.enterprise.net and is…
SergeyOvchinnik
- 2,367
2
votes
1 answer
What is correct approach to maintain resolv.conf on CentOS 7
On Ubuntu I use the resolvconf utility to update & maintain /etc/resolv.conf
On CentOS 7, the resolvconf utility doesn't appear to exist.
What is the correct way to maintain /etc/resolv.conf file on CentOS 7 ?
KR,
Nath
NathStone
- 31
1
vote
0 answers
DNS fails with Cellular Modem wwan0 interface
I have a Raspberry Pi running the latest Raspberry Pi OS with Linux Kernel 6.6.
I have a Quectel EC25 modem with an active SIM card that successfully connects to the internet. I can ping 8.8.8.8 through this wwan0 interface, but not google.com. I…
PhilBot
- 131
1
vote
1 answer
Arch Linux Domain resolution stopped working
After a system upgrade (pacman -Syu) today, no domain names can be looked up. Networking is working fine, I can "ping 8.8.8.8" and ping "1.1.1.1" which are my DNS servers. However, "ping google.com" or any other domains do not work.
Any help is…
BrainyXS
- 11
1
vote
1 answer
Domain search entries in resolv.conf and ifcfg-ens33 files
In CentOS, when we modify /etc/sysconfig/network-scripts/ifcfg-ens33 file for multiple domain search entries, should we also manually change /etc/resolv.conf ?
There are search entries in resolv.conf and entries as DOMAIN= in ifcfg-ens33.
Thanks in…
gkr2d2
- 111
1
vote
1 answer
Use dnsmasq to test a future DNS migration
I'm planning to migrate my domain's DNS from one provider to another. ("mydomain.com" as I have to censor the real name)
Technically, it's just a matter of changing the NS records before the registrar change, but I'd like to make sure I didn't miss…
Camusensei
- 231
1
vote
0 answers
Who creates /etc/resolv.conf file under docker in Alpinelinux
I prepared my Alpinelinux docker image with a proper /etc/resolv.conf file but when I start it I found its content get changed, to:
$ cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic…
xpt
- 9,385
- 44
- 120
- 178