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).)

Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

Inconsistent docker resolv.conf behavior

I have 2 computer set up with Ubuntu 22.04.3 installed. They both have the same docker version (25.0.3, build 4debf41). However if I check the resolv.conf file in any container I create, the first one ...
b.moyet's user avatar
0 votes
1 answer
32 views

ifup overwrites resolv.conf incorrectly?

Debian 12.4 with networking managed by systemd networking.service, dual stack IPv4 and IPv6. I am aware of the many questions asking how to stop the system from updating resolv.conf, and this is not a ...
Ex Umbris's user avatar
  • 264
0 votes
0 answers
13 views

How to tell my LinuxMint system to update DNS server when using Python's protonvpn-cli?

When I run by example: protonvpn-cli connect --fastest --protocol udp the DNS domain names are not resolved. I need to edit /etc/resolv.conf to put (bogon IP): nameserver 10.2.0.1 How can I tell the ...
Mévatlavé Kraspek's user avatar
1 vote
1 answer
90 views

Why would curl fail to resolve a URL when drill can?

I am trying to configure my computer to resolve some domains using a local DNS server. The DNS server is at 192.168.1.123, and is itself able to resolve everything normally. On other computers, I ...
Bagalaw's user avatar
  • 925
0 votes
1 answer
177 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
1 answer
359 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
1 vote
1 answer
7k 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
  • 505
-1 votes
1 answer
975 views

"No Such File in Directory" error when modifying resolv.conf in Nano

When I edit /etc/resolv.conf (using nano) to add in the nameserver 8.8.8.8, I get the following error when I save: No such file in directory. However, when I go to the /etc directory, resolv.conf is ...
Jessica's user avatar
0 votes
0 answers
155 views

Configure IPv6 DNS server via DHCP in LXC container

I have an LXC container created and started as follows: sudo lxc-create -t debian -n mylxc -- --release bullseye sudo lxc-start -n mylxc sudo lxc-attach -n mylxc On the LXC host I have a DHCP server ...
carlfriedrich's user avatar
1 vote
1 answer
396 views

resolvconf package create corrupt /etc/resolv.conf file

I'm having a weird issue under debian 11 with resolvconf package. No matter what kind of configuration I throw in, the /etc/resolv.conf file created by resolvconf service is kinda corrupt. Dig says: ...
user3450548's user avatar
  • 2,846
0 votes
1 answer
519 views

Forward DNS request to mDNS resolution

I use mDNS (with avahi, and libnss-mdns) a lot in my home network. However, I've tried to setup Prometheus, and it simply does not care about system resolution, it just takes the name servers from /...
Uko's user avatar
  • 111
0 votes
0 answers
40 views

resolv.conf link

Running Ubuntu 20.04. /etc/resolv.conf is a link to /run/systemd/resolve/stub-resolv.conf with 127.0.0.53 as the nameserver. When I start our VPN client, /etc/resolv.conf is no longer a link to /run/...
whyme's user avatar
  • 1
4 votes
1 answer
498 views

/etc/resolv.conf gets auto updated by protonvpn?

Since I have installed protonvpn the reslov.conf file always gets overwritten or sets back to ::1. I always have to manually edit the file before I can access the internet. It doesn´t matter what I ...
Kauabanga's user avatar
0 votes
0 answers
356 views

Openvpn's update-resolv-conf set the nameservers in the wrong order with openresolv

I wanted to switch from resolvconf to openresolv since openresolv seems more reliable. I use Mullvad and set my nameserver to 100.64.0.1 as backup nameserver. Now I when use resolvconf and start ...
gunelinx's user avatar
0 votes
1 answer
456 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
0 answers
1k views

Debian 11 bullseye How do I manage the IPV6 interface? And can I reload the resolv.conf file?

Hello First of all, I’m sorry if my English is bad! My config : Raspberry - Raspbian - Debian 11 Bullseye - CM4 Package resolvconf My /etc/network/interfaces auto eth0 iface eth0 inet static address ...
PAClement's user avatar
2 votes
0 answers
563 views

/etc/resolv.conf changed after reboot although NetworkManager.service is masked and not running

I'm running CentOS 7.9, why is my /etc/resolv.conf changed after reboot ? Before reboot : # cat /etc/resolv.conf search myDomain.lan nameserver x.y.z.t1 nameserver x.y.z.t2 After reboot : # cat /etc/...
SebMa's user avatar
  • 2,109
2 votes
1 answer
405 views

resolv.conf being rewritten at reboot with wrong DNS IP

I got a server running RHEL 8.6. Whenever it gets rebooted, I get a newly created resolv.conf not containing the proper IP for my DNS. before reboot: nameserver X.X.X.X after reboot: nameserver Y.Y.Y....
Imogen's user avatar
  • 23
1 vote
3 answers
6k views

Why does /etc/resolv.conf keep changing?

I am running a debian based linux vm using virt-manager with two ethernet interfacs one connected with NAT and the other is bridged to br0, in /etc/network/interfaces I have the following ...
sinister's user avatar
0 votes
1 answer
317 views

How are DNS queries are handled in RHEL linux distributions?

When I modify an ifcfg-.... configuration file for a newtork interface and add DNS1 & DNS2 entries, these DNS values are appended to /etc/resolv.conf by Network-Manager service when this service ...
Arda Tunccekic's user avatar
0 votes
0 answers
238 views

CentOS7 CloudFlare DNS

I'm trying to make my server use CloudFlare public DNS (1.1.1.1, 1.0.0.1). When I edit /etc/resolv.conf I see: ; generated by /usr/sbin/dhclient-script nameserver 10.10.10.10 When I update it to this,...
Tallboy's user avatar
  • 101
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
1 vote
1 answer
1k views

Networkmanager is populating resolv.conf with incorrect information and I can't override

NetworkManager always sets my DNS server in /etc/resolv.conf to be 192.168.1.1 even though my router address is 192.168.18.1. Manually setting it to the latter works, but is overwritten constantly ...
gomerj's user avatar
  • 11
1 vote
0 answers
73 views

Kali Linux 2022.1 Fresh installation DNS Problems resolv.conf missing [duplicate]

I am dealing with DNS Problems on my freshly installed Kali Linux Machine. I can connected to my Home Network, wired and wireless. I can also Ping my default Gateway and Google DNS Server 8.8.8.8 . ...
naseweis's user avatar
4 votes
2 answers
13k views

How to configure resolv.conf

I recently run into an apparent DNS resolution issue which I documented here and this led me to investigate /etc/resolv.conf further. On my Linux Mint machine, this is a symlink that points to /run/...
quiet-ranger's user avatar
0 votes
1 answer
327 views

RDNSS support on Debian 11

As far as I tried, RDDNS isn't supported natively on Debian 11. I manually installed rdnssd and IPv6 DNS appeared in resolv.conf. Is RDDNS natively supported on Debian 11 (this means that I would have ...
Hexomédia's user avatar
6 votes
1 answer
48k views

Where should I configure DNS in Debian 11?

I'm using Debian 11 (Bullseye). I'd like to use a different DNS server. I found the file /etc/resolv.conf. It looks like this (by default): nameserver 192.168.1.1 nameserver 1.1.1.1 nameserver 8.8.8.8 ...
cocomac's user avatar
  • 503
1 vote
1 answer
2k views

What is the relation between host.conf and resolv.conf

I am using ubuntu. I see the following information from the manpage: For /etc/host.conf (man host.conf) host.conf - resolver configuration file The file /etc/host.conf contains configuration ...
doraemon's user avatar
  • 421
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
0 votes
0 answers
785 views

Custom nameservers not resolving on Debian 11 on Hetzner root server

I am at my wits end. I've spent the last two days trying to set custom nameservers on a Debian 11 Bullseye installation. Debian is installed through Hetzner's installimage script. Now, the recursive ...
TheCreepySheep's user avatar
2 votes
2 answers
4k views

Pop_OS! 21.04 - DNS not working

Edit: this problem may be related to the fact that my resolv.conf file is no longer a symlink due to my previous use of ProtonVPN... Edit 2: just tried re-linking it to /run/resolvconf/resolv.conf and ...
qx-7's user avatar
  • 41
-1 votes
2 answers
1k views

Dynamically update resolv.conf when created by DHCP in limited embeded environment

I am working with a custom Linux image for an embedded device built with yocto. It has no network management other than the interface configurations for ifup/ifdown. /etc/resolv.conf is created dhcp (...
Buoy's user avatar
  • 111
0 votes
0 answers
45 views

Ubuntu 20.04 a couple of internet addresses does not relove

Symptoms that i know of so far, cannot ping or visit with Firefox: hg.mozilla.org and ciscobinary.openh264.org - Ubuntu 20.04 always fails these two addresses and it starts after a week or two. ...
Bjorn's user avatar
  • 123
1 vote
1 answer
2k 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
  • 121
0 votes
1 answer
1k views

Configure split DNS resolver to always use VPN-internal nameserver for fixed list of domains

What's the most reliable configuration to have a fixed list of internal domains always resolved through an internal nameserver, even if it's unreachable because the VPN is down, while still using the ...
basic6's user avatar
  • 6,255
0 votes
2 answers
3k views

Client (Ubuntu 20.04) cannot resolve internet pages while connected to the VPN WireGuard Server

I've setup a WireGuard VPN, however after successfully connecting with the following command the browser is not loading web pages from the internet: wg-quick up `pwd`/myifwg0.conf I checked the ...
TPPZ's user avatar
  • 505
3 votes
0 answers
275 views

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 ?
gkr2d2's user avatar
  • 131
4 votes
2 answers
8k views

How to use a second nameserver if the first can't resolve a domain?

How can I configure a linux computer to use a second DNS server if the default server fails to find the IP for a domain? I tried adding both to /etc/resolv.conf but then it will only try the second ...
cheezsteak's user avatar
0 votes
0 answers
258 views

Conflicts between dns name to real machine host-name and impact about ssh connections

I want to share the picture about our cluster with machines rhel 7.5 . DNS server include the following names (example) We can see that "S" is capital letter: BD_Server1 BD_Server2 ...
yael's user avatar
  • 13.1k
0 votes
1 answer
2k views

How to reset DNS to its default after changing it with systemd-resolve?

I'm using Xubuntu 18.04. AFAIK, DNS could be changed with sudo systemd-resolve -i wlp3s0 --set-dns="xxx-yyy-aaa-bbb". Now, how can I revert it back to the default state? Before setting it, ...
Zeta.Investigator's user avatar
0 votes
1 answer
1k views

How is the default `search` value in /etc/resolv.conf defined if there is no local domain name?

I am running Kali Linux 2020.4 in VirtualBox 6.1. The image runs in its own NAT Network (created in VirtualBox via Settings - Network) with DHCP support enabled. When I run cat /etc/resolv.conf I get ...
lks_swrx's user avatar
  • 101
0 votes
1 answer
3k views

Revert to default DNS /etc/resolv.conf settings on Debian

I had default Debian DNS settings on my laptop, but I couldn't connect to a corporate remote PC with it. Then I decided to edit DNS servers to corporate ones by editing /etc/resolv.conf. I've added ...
Vladimir Markiev's user avatar
-1 votes
2 answers
7k views

Change resolv.conf

bug: resolv.conf auto-populates search and nameserver seeking: permanent or temporary (run each time system boots.) recommended solution: resolvconf package solves the auto-population issue (not to be ...
rakis's user avatar
  • 9
7 votes
1 answer
6k views

Fedora 33: Use custom DNS addresses

In Fedora 32, I used to edit /etc/resolv.conf in order to modify DNS addresses: nameserver [IP1] nameserver [IP2] But In Fedora 33 this file has been changed and it has a warning saying Do not edit: #...
Pedram Behroozi's user avatar
0 votes
0 answers
1k views

How to set resolv.conf to use the DNS supplied by the default gateway?

For some reason - I have no idea why - my /etc/resolv.conf looks like this: nameserver 127.0.0.53 options edns0 search home This is a problem, because I have a local nameserver, serving local domains....
OZ1SEJ's user avatar
  • 185
127 votes
3 answers
201k views

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 ...
HelloWorld's user avatar
  • 1,545
0 votes
1 answer
4k views

What is adding a IP to the resolv.conf file?

I installed 4 Ubuntu VMs on my laptop and added for each of them extra network adapter with static ips for private network. I configured one of them to be the internal DNS server, added his IP to the ...
fusu's user avatar
  • 111
-1 votes
1 answer
313 views

linux + test dns resolving of hosts/ip's but without to wait a long time

we want to test , fast as possible the hosts/ip's resolving for example when we do the following host -a linux1 Trying "linux1.df.com" ;; connection timed out; no servers could be reached ...
yael's user avatar
  • 13.1k
-3 votes
1 answer
244 views

building DNS server on linux redhat 7.x [closed]

we are using until now DNS server based on WIN 2000 we decided to move to DNS server that will replace the DNS server on Linux note - DNS server on linux redhat should also support revers lookup I see ...
yael's user avatar
  • 13.1k
0 votes
2 answers
649 views

How can a program be resolving an FQDN without a valid resolv.conf?

I've just found a bug in an embedded linux machine caused by a broken /etc/resov.conf. Specifically this was a broken symlink. The thing I can't explain is why some (many) of them ever worked. The ...
Philip Couling's user avatar

1
2 3 4 5