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
18 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 ...
0 votes
0 answers
27 views

nslookup is not recursing through search domains in /etc/resolv.conf, but ping is

I'm trying to understand why multiple search domains do not work with nslookup in Ubuntu 22.04 (or ostensibly any other distro), but appear to work as expected when using ping. Let me explain. A DNS ...
  • 117
0 votes
1 answer
46 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 ...
0 votes
0 answers
312 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 ...
0 votes
0 answers
61 views

dnsmasq - where to store unavailable config values (that are only available for /etc/resolv.conf)

following options are apparently not available in dnsmasq, only in resolv.conf: options timeout: n options attempts: n search [Search list for host-name lookup] timeout: is hard-coded in dnsmasq ...
  • 1
1 vote
0 answers
184 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/...
  • 1,717
2 votes
1 answer
125 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....
  • 23
0 votes
3 answers
437 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 ...
0 votes
0 answers
224 views

CentOS 7: how to debug/fix DNS nameservers timeout in /etc/resolv.conf?

I have to reconfigure the DNS nameservers used by a CentOS 7 server cat /etc/centos-release CentOS linux release 7.6.1810 (Core) with the new ones based on the CISCO Umbrella technology (I don't know ...
  • 251
0 votes
1 answer
46 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 ...
0 votes
0 answers
128 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,...
  • 101
0 votes
1 answer
2k 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: ...
1 vote
1 answer
682 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 ...
  • 11
0 votes
0 answers
69 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 . ...
3 votes
2 answers
6k 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/...
0 votes
1 answer
165 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 ...
1 vote
1 answer
13k 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 ...
  • 331
0 votes
1 answer
930 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 ...
  • 331
0 votes
1 answer
5k 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 ...
  • 31
0 votes
0 answers
486 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 ...
2 votes
1 answer
2k 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 ...
-1 votes
2 answers
431 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 (...
0 votes
0 answers
35 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. ...
  • 123
1 vote
1 answer
906 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 ...
  • 111
0 votes
1 answer
918 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 ...
  • 5,905
0 votes
2 answers
2k 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 ...
  • 415
3 votes
0 answers
222 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 ?
  • 131
3 votes
2 answers
3k 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 ...
0 votes
0 answers
140 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 ...
  • 11.9k
0 votes
1 answer
1k 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, ...
0 votes
1 answer
706 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 ...
  • 101
0 votes
1 answer
2k 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 ...
0 votes
2 answers
4k 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 ...
  • 11
7 votes
1 answer
5k 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: #...
0 votes
0 answers
626 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....
  • 143
88 votes
3 answers
117k 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 ...
  • 1,115
0 votes
1 answer
2k 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 ...
  • 111
-1 votes
1 answer
222 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 ...
  • 11.9k
-3 votes
1 answer
236 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 ...
  • 11.9k
0 votes
2 answers
397 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 ...
2 votes
0 answers
874 views

How do I (correctly) manage/update search domains with systemd?

I have a system (running Ubuntu 20.04) with multiple network interfaces and I realized that the search domains (I'm looking at /etc/resolv.conf, which I know is just a symlink to a systemd-resolved ...
1 vote
1 answer
1k views

Why does /etc/resolv.conf contain "search attlocal.net"?

For Linux Mint 18.3 I began by reading several posts here and elsewhere about /etc/resolv.conf. Some of those posts reference -- but do not explain the function of -- a line of the form search ...
  • 173
18 votes
1 answer
10k views

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 ...
0 votes
1 answer
578 views

systemd-resolved attaches DNS domain to query

I connect to a remote VPN using NetworkManager and the openconnect (Cisco Anyconnect) pluging under Xubuntu 20.4. All works fine, except DNS resolution of services inside the VPN. The remote VPN ...
  • 101
1 vote
1 answer
280 views

Unable to resolve entry in hosts file?

I have the following entry in the hosts file: 127.0.0.1 postgres This works most of the time: [root@l25 log]# ping postgres PING postgres (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (...
  • 121
0 votes
2 answers
728 views

How do you block network acceess to systemd?

How would one quarantine any systemd processes from ever using ANY network interface or resources at OS-level? Overview Minimalistically, I'd like to setup a Linux gateway. Simple NAT, forwarding ...
0 votes
1 answer
281 views

Trying to understand the /etc/resolv.conf

I am trying to understand the entries in the /etc/resolv.conf file in linux systems. The file contains a list of keywords and values. This is an example of the contents of the /etc/resolv.conf: ...
0 votes
0 answers
2k views

Ubuntu does not use DNS server from router

I cannot solve DNS resolution on UBUNTU 20.04. If I check the IP values after connection it is showing the right DNS server address, but in NSLookup the DNS server is not listed, and it comes back ...
1 vote
0 answers
584 views

resolv.conf search doesn't work anymore when domain has a dot

This is weird one. I have 2 CentOS7 servers. One is older and one was recently built and they have identical resolv.conf files. $ cat /etc/resolv.conf search prod.gb2.example.com gb2.example.com ...
  • 21
0 votes
2 answers
2k views

dig: parse of /etc/resolv.conf failed

I tried using dig and I got the error in the title. My /etc/resolv.conf is this nameserver 67.207.67.2 nameserver 67.207.67.3 nameserver ns1.name.com nameserver ns2.name.com nameserver ns3.name.com ...
  • 191