Questions tagged [resolv.conf]

34 questions
47
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
  • 13,149
  • 30
  • 84
  • 111
11
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
  • 401
  • 1
  • 4
  • 9
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
  • 192
  • 2
  • 11
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

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
  • 4
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
  • 4
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
  • 2
  • 8
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
  • 8,261
  • 38
  • 102
  • 156
1
vote
1 answer

Error in docker pull (linux) "request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

Issue type -- error 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…
Vincent
  • 11
  • 1
  • 3
1
vote
0 answers

Persistent DNS setup for nomadic Linux users

After looking desperately on the Internet for having an answer, I will expose my problem to you. I am working on a Linux station as a consultant, so my DNS setup is regularly a mess: I have to be connected to my company's VPN permanently, so being…
1
vote
1 answer

prepend domain-search is overwriting rather than prepending

I have an Linux host running on AWS and I want to add a domain to the search. By default, the resolv.conf file looks like this [ec2-user@ip- ~]$ cat /etc/resolv.conf ; generated by /sbin/dhclient-script search us-west-2.compute.internal I tried…
1
vote
2 answers

Using supersede domain-search in dhclient+resolvconf appears to append?

On my Ubuntu 16.04 machine, I'm using DHCP to get an IP address from my ISP's router. It replies with DNS servers and DNS search domains I want to override. /etc/dhcp/dhclient.conf: option rfc3442-classless-static-routes code 121 = array of unsigned…
gertvdijk
  • 3,497
  • 1
  • 18
  • 37
1
vote
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,327
  • 4
  • 13
  • 14
1
vote
2 answers

Ubuntu - DNS not automatically configured. Has to be set manually in /etc/resolv.conf

When I connect to a network (e.g. home or work network), I have to manually enter the nameserver adresses in /etc/resolv.conf every time (I change to a new network). It used to be automatic. Any ideas how to change this back to automatic again ?
1
2 3