Questions tagged [resolv.conf]

The resolv.conf file contains information that is read by the resolver (a set of C library routines that provide access to the Internet Domain Name System (DNS).)

This tag is for questions regarding the configuration syntax of the file /etc/resolv.conf and it's configuration parameters.

198 questions
110
votes
3 answers

Why does /etc/resolv.conf point at 127.0.0.53?

I tried to check what my DNS resolver is and I noticed this: user@ubuntu:~$ cat /etc/resolv.conf nameserver 127.0.0.53 options edns0 I was expecting 192.168.1.1, which is my default gateway, my router. I don't understand why it points at…
HelloWorld
  • 1,355
  • 2
  • 6
  • 11
56
votes
9 answers

What overwrites /etc/resolv.conf on every boot?

I was given the files for a mini linux, that boots directly into firefox. It works for all it should be doing, only that I do not get an internet connection. We have 3 DNS servers in the network, which all work. I can ping them, too. But when trying…
Minix
  • 5,735
  • 8
  • 28
  • 45
27
votes
4 answers

Ubuntu: How to configure DNS servers in /etc/network/interfaces correctly for resolvconf?

All examples I have seen of configurations (/etc/network/interfaces) showed that you configure an interface and then underneath that gave the dns-* lines such as: auto eth0 iface eth0 inet static ... dns-nameservers 127.0.0.2 …
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
27
votes
1 answer

What's the difference between /run/systemd/resolve/stub-resolv.conf and /run/systemd/resolve/resolv.conf?

For configuring custom DNS servers in a brand new Kubuntu 19.10 laptop it wasn't enough with adding to /etc/systemd/resolved.conf: DNS=77.88.8.7 77.88.8.3 #Yandex's DNS with no porn even on Google Images I also had to change the symlink of…
Nico Rodsevich
  • 2,265
  • 3
  • 15
  • 17
22
votes
1 answer

BOOTPROTO=none | static | dhcp and /etc/resolv.conf

What does it mean when it says BOOTPROTO=none in the /etc/sysconfig/network-scripts/ifcfg-eth0 file. I remember there used to be BOOTPROTO=static and it was very clear and straight-forward in telling us that if an IPADDR= is given, the…
Sreeraj
  • 4,984
  • 10
  • 38
  • 57
21
votes
2 answers

What's the "right way" to effect changes in /etc/resolv.conf with /etc/resolv.conf.d in place?

I the old days, resolv.conf was static and you edited it yourself. Later on, the DHCP client would rewrite it, using some static entries and what it got from the DHCP lease. These days, some distributions - like mine (Linux Mint 18.1) have a…
einpoklum
  • 8,772
  • 19
  • 65
  • 129
19
votes
3 answers

Who reads /etc/resolv.conf?

My Centos 7 server doesn't resolve domain names properly. From what I see, in modern Linux systems /etc/resolv.conf is often generated with dhclient, dnsmasq or Network Manager. Thus I have a general theoretical question about network stack in…
Boris Burkov
  • 3,931
  • 4
  • 25
  • 37
18
votes
1 answer

What is the difference between resolvconf, systemd-resolve, and avahi?

I'm currently working on a project that has required some DNS troubleshooting. However I am fairly new to the wonderful world of networking and I'm at a bit of a loss as to where to begin. My specific problem probably belongs on the Raspberry Pi…
Toshi Taperek
  • 183
  • 1
  • 1
  • 4
14
votes
4 answers

I can resolve a *.local domain, ping the IP, but I can't ping this domain

I am trying to get *.local domains to use the DNS server with vagrant-dns. In order for that to work I set up dnsmasq to run in front of it. NetworkManager is installed but is set to dns=none resolve.conf: nameserver 127.0.0.1 #this points to…
DAB
  • 465
  • 1
  • 3
  • 10
13
votes
1 answer

NetworkManager Default Connection Settings

I'm trying to modify NetworkManager's default DNS settings so that whenever I add a new connection it uses 127.0.0.1 instead of the default DNS for that connection. I still would like to be able to modify the DNS for each individual connections…
marceloneil
  • 393
  • 3
  • 12
12
votes
2 answers

What overwrites /etc/resolv.conf roughly every hour?

I'm trying to add a search line to /etc/resolv.conf I've added it directly, as an append command in /etc/dhcp/dhclient.conf and as a nameservers block in /etc/netplan/50-cloud-init.yaml. After roughly an hour, the dhcp and netplan files are intact,…
dspeyer
  • 303
  • 3
  • 7
11
votes
6 answers

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my Internet Service Provider! How to fix this DNS leak? I…
PlasmaBinturong
  • 619
  • 1
  • 7
  • 15
10
votes
3 answers

What is causing the changes in /etc/resolver/ on MacOS Sierra to be noticed

I wanted to use non-default DNS resolver for one specific domain, and the first idea was to simply use local dnsmasq. While looking for MacOS version, I found out that I can achieve the same simply by creating a file with domain name in…
Dusan Bajic
  • 153
  • 1
  • 1
  • 8
10
votes
3 answers

OpenVPN, resolvconf, and DNS domain resolution

While at site1, I need to connect to site2 via OpenVPN. Once connected, the OpenVPN site2 pushes a DNS nameserver and domain search options. This causes all name resolutions for site1 to fail. Example: Physically connected at site1, DHCP pushes DNS…
Tim Jones
  • 153
  • 1
  • 2
  • 6
9
votes
3 answers

Alpine Linux sometimes DNS is not resolved

Sometimes when I run the commands: sudo apk update && sudo apk upgrade Over Alpine linux fails to update the packages even if connected to internet. But if I do sudo su "echo 'nameserver 8.8.8.8' > /etc/resolv.conf" I manage to dowload them. But…
Dimitrios Desyllas
  • 979
  • 3
  • 11
  • 27
1
2 3
13 14