Questions tagged [resolv.conf]

/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.

Filter by
Sorted by
Tagged with
0 votes
2 answers
228 views

Why do I have to specify the DNS server when doing a forward lookup?

I'm trying to set up a small, private DNS server. I'm using Bind9 and systemd resolved, netplan for managing the network. I've specified the DNS server in both the netplan configuration and /etc/...
sysad noob's user avatar
0 votes
0 answers
48 views

DNS resolution failure when resolv.conf has nameserver value as 127.0.0.1

We have an application hosted in 2 ec-2 instances. In an AWS Route 53 record of A type, the domain is mapped with the IP addresses of those 2 servers. From one of the local VM in our office network, ...
user93916's user avatar
0 votes
1 answer
54 views

Kubernetes cluster with incorrect DNS resolution

Question Description: I have a harvester HCI Cluster (RKE2), where pods do not resolve the correct IP addresses for internet domains. kubectl run debug --image=busybox -i --tty --rm -- sh / # ping ...
d_inevitable's user avatar
1 vote
1 answer
7k views

How can I configure my DNS settings on Debian 12?

I'm trying to change my DNS settings on my Debian 12 VPS, and by this I mean, I want to use a public resolver like 1.1.1.1 instead of my VPS host's resolver. I remember in Debian 11 I could just edit ...
Cherona's user avatar
  • 131
-1 votes
2 answers
77 views

OpenVPN headless on Debian 11.7 IP does not change

I have a ProtonVPN paid account. I want to use it on my VPS server (so in headless), to change my ip. Their client does not work in headless mode, so I use OpenVPN. I download the Linux config file on ...
user2178964's user avatar
1 vote
1 answer
96 views

Domain names not resolving on CentOS webserver

I have a small webhosting VPS running CentOS Linux 7.9.2009 (Core). I'm also running Plesk Obsidian Version 18.0.52 Here is my /etc/resolv.conf file: nameserver 1.1.1.1 nameserver 8.8.4.4 nameserver ...
stevland's user avatar
  • 165
0 votes
0 answers
217 views

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 ...
Daniel Lin's user avatar
0 votes
1 answer
747 views

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 ...
Andrew's user avatar
  • 238
0 votes
0 answers
28 views

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 ...
Dorothy's user avatar
  • 179
0 votes
0 answers
95 views

"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 ...
Bourbon's user avatar
1 vote
0 answers
221 views

How to configure dnsmasq per interface nameservers from DHCP leases

I am working on an IoT device that has three network interfaces: Ethernet, WiFi, and LTE. The interfaces provide redundancy and fail-over for network connectivity, and any combination of the ...
timothy.godfrey's user avatar
0 votes
2 answers
1k views

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 ...
user53815's user avatar
0 votes
1 answer
585 views

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/...
Preeti 's user avatar
  • 101
1 vote
1 answer
340 views

No DNS on PXE booted Linux Live System with NetworkManager

I've built a custom Debian Live CD (using live-boot and containing a kernel, initrd and a filesystem.squashfs) which includes specific tools we regularly use. The Live CD works flawlessly if booted ...
Apollo13's user avatar
1 vote
0 answers
2k views

is there a way on Linux to set DNS servers using a cmd line?

I use a script that creates multiple network interfaces with IP adresses. An example of commands used by the script: ip addr flush eth0 ip addr flush eth1 ip addr add 192.168.1.10 dev eth0 route add ...
expertsearch's user avatar
0 votes
1 answer
532 views

Shell script to check resolv.conf [closed]

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 ...
Rajesh Yidi's user avatar
1 vote
1 answer
309 views

Is it necessary to set a different ttl before change a Route53 DNS record value?

The first time create the Route53 DNS record with a load balancer origin DNS name with ttl 1 day. After some days, we want to change the value to another load balancer origin DNS name. Do we need to ...
freetimetime's user avatar
0 votes
1 answer
7k views

/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 ...
Daigo's user avatar
  • 373
0 votes
2 answers
275 views

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 ...
Etki's user avatar
  • 129
0 votes
1 answer
198 views

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 ...
Maestro223's user avatar
-1 votes
1 answer
298 views

rhel + resolve.conf + what is the right resolve.conf settings

we want to know what is the right configuration in resolve.conf and about domain name in resolve.conf in our rhel 7 server we configured the following example of resolve.conf more /etc/resolv.conf ; ...
sheffadmin's user avatar
1 vote
0 answers
3k views

ping: example.org: No address associated with hostname

I am facing a problem I cannot explain: If I do ping example.org I am getting the result ping: example.org: No address associated with hostname dig returns an empty result: dig example.org ; <&...
SPQRInc's user avatar
  • 161
0 votes
1 answer
789 views

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 ...
JaySon's user avatar
  • 111
2 votes
1 answer
11k views

Docker cant resolve DNS-Names outside of docker network. Receiving "read from DNS server failed"

I have deployed an Adguard Home docker container which i want to use as my DNS server/proxy. DNS resolution is working fine when i'm making an nslookup from a machine (as well as the docker host) on ...
PurifyPioneer's user avatar
0 votes
0 answers
1k views

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 ...
Vicente Olivert Riera's user avatar
-1 votes
2 answers
4k 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 ...
Mnkisd's user avatar
  • 111
0 votes
1 answer
454 views

How to set options timeout in resolv.conf in docker container?

How (if any) it is possible to add options timeout to /etc/resolv.conf in docker container running in Kubernetes cluster? The file is generated, so it's not possible to do that in Dockerfile. On the ...
9ilsdx 9rvj 0lo's user avatar
0 votes
1 answer
73 views

Fedora network configuration

I've got a Fedora 31 instance configured with an IPv6 stack and that has join an IPA domain. I've activated the IPv6 stack by editing /etc/sysconfig/network-scripts/ifcfg-eth0 Added IPV6INIT=yes ...
coolnodje's user avatar
  • 233
4 votes
2 answers
12k views

Cannot ssh or ping hostname, but dig and nslookup work on Ubuntu 18.04

I updated my kernel this weekend, and now I'm using 5.3.1. christopher@HAL4:~$ uname -r 5.3.1-050301-generic I need to login to servers, but I cannot do so by hostname any longer. For example, I ...
DevOpsSauce's user avatar
2 votes
1 answer
1k views

How to set custom settings in resolv.conf when using system-resolvd

I would like to use option values in /etc/resolv.conf. From reviewing the relevant man page (https://linux.die.net/man/5/resolv.conf) I noticed that I can configure various options. For example one ...
kfir's user avatar
  • 111
0 votes
0 answers
6k views

HAProxy resolver doesn't work : could not resolve address

I'm on Ubuntu 16.04; I set up HAProxy as an entrypoint to services defined by domain names; those domain names are served by a DNS server (coredns) in the same machine (or VLAN network). Using ...
Agdmoun khalid's user avatar
2 votes
1 answer
10k views

Host DNS not working with docker container

I have a probleme with docker on my archlinux kernel Linux 4.19.31-1-lts #1 SMP Sun Mar 24 09:29:16 CET 2019 x86_64 GNU/Linux $ docker info return : $ docker info ...
Kermito's user avatar
  • 31
1 vote
1 answer
478 views

qmail couldn't find any host named [closed]

System: Ubuntu 18.04 LTS (fresh install) qmail dovecot Plesk 17 Mail configuration was done with plesk. It is not possible to send any mail to any reciepents on different domains. Log contains: ...
B3IT's user avatar
  • 21
0 votes
1 answer
1k views

Resolving CoreDNS Loop Error

I am trying to resolve a loop error with CoreDNS as part of a 2-node Kubernetes cluster. The issue is thoroughly documented (below), but I am not strong on dns and networking so am having trouble ...
Bryon's user avatar
  • 131
1 vote
1 answer
638 views

Query two different DNS nameservers - one for LAN only, one for everything else

On a Debian-based linux device I need to set up DNS lookups on two different DNS nameservers - one for local domain lookups, one for everything else. My /etc/resolv.conf currently is: # Generated by ...
Dante's user avatar
  • 11
1 vote
0 answers
885 views

Linux DNS resolve rotate attempts does not take effect

I have rotate and attempts settings in my resolv file: nameserver 127.0.0.1 nameserver 10.104.64.25 nameserver 10.104.65.25 options timeout:1 attempts:3 rotate And OS info is: Linux 152a580f-e3c2-...
roamer's user avatar
  • 31
2 votes
1 answer
1k views

Linux DNS query sequence with resolv.conf

I have a encountered a DNS resolution issue. Could someone pls give me some tips on this issue, thanks in advance~ uname -a Linux 152a580f-e3c2-405f-acde-eac4d928af22 4.4.0-111-generic #134~14.04.1-...
roamer's user avatar
  • 31
1 vote
1 answer
240 views

Custom resolv.conf file

Is there any way I can specify a custom resolv.conf file (instead of /etc/resolv.conf) in RedHat Linux, similar to specifying custom hosts file via export HOSTALIASES=~/my_hosts? I don't have root ...
penguin's user avatar
  • 39
0 votes
1 answer
1k views

Using custom DNS in VPN to resolv domains to different server

What I have is simple but I got a VPN issue that I don't know how to solve. In general I want to route public domains differently within a VPN. See the current role of a Debian host: A public ...
Cornfused's user avatar
1 vote
2 answers
6k views

Can't connect to Internet while F5 VPN is connected

I'm using F5 BIG-IP Edge VPN client on OS X Yosemite 10.10 and trying to find the best way to access the web, while connected Has anyone found a solution, how to make it work? Maybe this could be an ...
Constantine SV's user avatar
0 votes
1 answer
170 views

Using custom etc/resolv.conf for deployed virtual servers?

Saw that cloudflare is now powering their own set of DNS servers https://developers.cloudflare.com/1.1.1.1/setting-up-1.1.1.1/linux/ We are running a couple dozen debian systems. Anyone used a ...
dlrust's user avatar
  • 715
2 votes
1 answer
2k views

Not possible to update resolv.conf

I edit /etc/resolvconf/resolv.conf.d/base: $ cat /etc/resolvconf/resolv.conf.d/base nameserver 192.168.100.16 I force an update: $ sudo resolvconf -u I check if it worked: $ cat /etc/resolv.conf ...
blueFast's user avatar
  • 4,260
1 vote
1 answer
4k views

Why are my dns options specified in /etc/network/interfaces not parsed by resolvconf?

I have a Ubuntu 14.04 server which has two IP addresses specified on a single interface. They are defined in /etc/network/interfaces like so: auto em1 iface em1 inet static address 192.168.1.2 ...
Carcer's user avatar
  • 1,007
2 votes
1 answer
1k views

Where is the "search" line in my resolv.conf coming from?

This is what my resolv.conf looks like: # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN ...
Azsgy's user avatar
  • 123
4 votes
2 answers
2k views

Prevent additional DNS queries when "search" is not set

The host in question is running Arch Linux with hostname set to foo.example.org. There is no search directive in /etc/resolv.conf. If I ping example.com or curl example.com or wget example.com (...
Zhuoyun Wei's user avatar
4 votes
2 answers
14k views

NetworkManager & dnsmasq - ignore auto DNS settings

I'm running Arch Linux with NetworkManager and dnsmasq set up. It all seems to work fine, except that I try to use the new CloudFlare 1.1.1.1 DNS, but the resolver keeps using the DNS that is ...
Taco de Wolff's user avatar
2 votes
1 answer
164 views

SUSE 11 SP4 resolver doesn't query nameservers

My resolver is not querying the nameserver. This command is running the background tcpdump -n -s 0 port 53 & Resolver points to files then dns # grep hosts /etc/nsswitch.conf hosts: files ...
rmeden's user avatar
  • 192
1 vote
2 answers
571 views

Does linux accept a DNS reply that comes after configured timeout if it is in the middle of the next attempt?

/etc/resolv.conf is configured with: options timeout:1 attempts:5 rotate nameserver A nameserver B Both configured nameservers have a delay of 3 seconds. The following exchange of messages occurs: ...
NetworkMeister's user avatar
2 votes
1 answer
2k views

Unexpected behaviour of 'attempts' option in /etc/resolv.conf

I'd like Linux to make only one request to DNS server, wait for 5 sec timeout and then abort the lookup if no answer. To do this I set the following options in /etc/resolv.conf assuming that attempts ...
Maxim's user avatar
  • 21
1 vote
0 answers
26 views

Solaris 10 app server operating on two company domains

I have a Solaris server hosting Apache and Tomcat web servers, it originally operated on one company domain: appname1.company1.com With a change in company, this original domain must still be ...
AndW99's user avatar
  • 111