/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.
Questions tagged [resolv.conf]
146 questions
0
votes
4 answers
resolv.conf is changed when it passes for a while
I set up /etc/resolv.conf
domain example.local
nameserver 127.0.0.1
nameserver 192.168.1.108
but,a days later..!?
It's changed!!
nameserver 192.168.1.1
192.168.1.1 is DHCPD
How to stop change it?

freddiefujiwra
- 1,667
- 5
- 25
- 34
0
votes
2 answers
Ubuntu, Siemens router and resolving the localhost
after installing anew Ubuntu 11.04 can't resolve to localhost. I'm trying:
root@valk-pc:~# nslookup localhost
Server: 10.0.0.138
Address: 10.0.0.138#53
Non-authoritative answer:
*** Can't find localhost: No answer
My /etc/resolv.conf has…

valk
- 497
- 2
- 9
- 20
0
votes
1 answer
resolv.conf cache behavior difference? Centos 5.6 vs AMZN Linux
Machine 1: Centos 5.6 AMI
Machine 2: Amazon Linux AMI Beta
I changed resolv.conf on both to get around an apparent DNS hiccup/lag last week, by appending 'nameserver 8.8.8.8' to the file.
The CentOS box picked it up and ran with it. Amzn Linux…

notbrain
- 209
- 3
- 16
0
votes
0 answers
Ubuntu: Netplan dont remove Nameserver
iam running ubuntu 22.04 on hetzner. After changing the nameservers with netplan, the old nameserver still show up resolvectl status and /etc/resolve.conf.
Removing them from resolve.conf does not work, after reboot they are back.
Is there a way to…
0
votes
1 answer
How to configure NetworkManager to not set default search domain in RHEL8 based distros?
Assume having a host with single, IPv4 only connection, named ens192, which has statically configured network settings (IP, DNS, gateway), named vm1.example.invalid. NetworkManager will add the following string to /etc/resolv.conf:
search…

Andrew
- 228
- 3
- 12
0
votes
0 answers
3% of Sendmail Localhost Relays are Deferred
Using Debian 10.3 and Sendmail Version 8.15.2, mail being sent with relay=[127.0.0.1] results in stat=Deferred: Name server: [127.0.0.1]: host name lookup failure. This occurs only 3% of all localhost relays.
What would cause this?
Example mail.log…

Dorothy
- 179
- 7
0
votes
0 answers
"resolvectl dns" empty output
I do on my VPS with Ubuntu 22 server (new, clean setup):
root@vm905709:~# resolvectl dns ens3
Link 2 (ens3):
root@vm905709:~#
(BTW, I did it on the same VPS with Debian and it was the same.)
And Global:
root@vm905709:~# resolvectl dns
Global:…

Bourbon
- 1
- 1
0
votes
2 answers
The correct domain settings in /etc/resolv.conf?
Currently I'm trying to configure settings of internal enterprise domain names for virtual SUSE hosts, which OS is SUSE Linux Enterprise Server 12 SP4.
There are two domain names that the SUSE hosts need to resolve: "infra.enterprise.com" and…

user53815
- 63
- 1
- 6
0
votes
1 answer
How to resolve DNS using Network Manager?
I am using Network Manager(nmcli) to establish network connection to a Linux based embedded device. But the client application is having issues connecting to aws backend. In the /etc/NetworkManager/conf.d the dns=dnsmasq is set and the…

Preeti
- 101
- 1
0
votes
1 answer
Shell script to check resolv.conf
I need to write a shell script which checks the contents of resolv.conf
Eg
domain example.com
search abc.com abc.org abc.net
nameserver 1.1.2.2
nameserver 3.3.4.4
abc.com/abc.org/abc.net can appear in any order
nameserver line can appear in any…

Rajesh Yidi
- 21
- 2
0
votes
1 answer
/etc/resolv.conf is missing after installation of RHEL 8
I have installed RedHat Enterprise Linux 8.4 (minimal install) on my local server, and got some docker related issues.
Then I found that /etc/resolv.conf was missing.
After executing "systemctl reload NetworkManager", the file was made and docker…

Daigo
- 343
- 7
- 20
0
votes
2 answers
resolv.conf & systemd-resolved: query next server on domain not found responses
I'm trying to build a simple cascade DNS resolution algorithm for my laptop:
Query the servers provided by DHCP
Not found / failed? Query 8.8.8.8 and it's friends
Not found / failed? Query local dnsmasq on 127.A.B.C
Currently it seems that next…

Etki
- 117
- 8
0
votes
1 answer
VPS Resolv And Static IP
I have a vps server hosted with an internationally, very well-known hosting provider, and oddly enough they seem disturbingly incapable of troubleshooting their own system.
There are two specific issues, that may or may not be related.
Currently, I…

Maestro223
- 203
- 2
- 13
0
votes
1 answer
Kubernetes through Virtualbox; Pods can't access internet services
System:
VirtualBox, Debian 10 Server, Kubernetes with kubeadm
I've setup a deployment and a service and I am exposing it via NodePort but my Pods somehow cant access the internet. The worker node which runs the pod however has an internet…

JaySon
- 111
- 4
0
votes
0 answers
Add DNS options to systemd-resolved /etc/resolv.conf
I am using systemd-networkd and systemd-resolved. I have /etc/resolv.conf being a symlink to /run/systemd/resolve/stub-resolv.conf as recommended.
I guess that /run/systemd/resolve/stub-resolv.conf must be auto-generated, so I would like to know if…