Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [resolv.conf]

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

0
votes
1answer
56 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 ...
1
vote
1answer
15 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: ...
0
votes
1answer
170 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 ...
1
vote
1answer
53 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 ...
0
votes
0answers
107 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-...
2
votes
1answer
95 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-...
1
vote
1answer
61 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 ...
0
votes
1answer
244 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 ...
1
vote
1answer
652 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 ...
0
votes
1answer
82 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 ...
1
vote
1answer
636 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 ...
0
votes
1answer
274 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 ...
0
votes
1answer
396 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 ...
3
votes
2answers
268 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 (...
2
votes
2answers
3k 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 ...
2
votes
1answer
43 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 ...
1
vote
2answers
72 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: ...
1
vote
1answer
162 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 ...
1
vote
0answers
15 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 ...
1
vote
0answers
251 views

Windows 2012 R2 DNS SERVFAIL on linux / mac clients

SERVFAIL is causing issues with some of our applications on linux/macs. I presume this is Windows DNS causing some problems with our linux/mac clients? Then again Windows clients are able to do ...
4
votes
3answers
12k views

Resolv Conf Multiple DNS Servers with specific domains

I need the ability to have specific dns servers for multiple networks, and i would like to know how to properly update my /etc/resolv.conf: lets say I have a major vpn, that I route all my trafiic ...
-1
votes
2answers
672 views

Can't resolve server by fqdn when search domain is enabled

I have a server named site.dpt.myorg.local, which i want to access both with short name and with fqdn. When i try to use short site or site.dpt form, everything works just fine. However when i use ...
1
vote
2answers
48 views

How to make linux server query second or third or fourth nameserver IPaddress from resolv.conf

In our environment we have a very uniq requirement. Let me explain you our environment first. We have DEV,TEST,PRE-PROD & PROD environment, and every environment has its own DNS server ( Primary ...
2
votes
1answer
524 views

Is there a way to specify name servers for an interface in lxc configuration?

I'm trying to make LXC containers use static IP addresses. For that I specify lxc.network.ipv4 = 10.0.3.3 lxc.network.ipv4.gateway = 10.0.3.1 in lxc config file. I have only loopback interface in /...
0
votes
2answers
1k views

Resolv.conf reset automatically after reboot to the wrong dns

With my ubuntu 16.04, my /etc/resolv.conf change every system start cat /etc/resolv.conf nameserver 127.0.0.1 Network-manager have the correct dns name server 192.168.1.1 I removed bind9 and all ...
2
votes
1answer
398 views

What's the magic incantation to force DNS queries over TCP on an Amazon/AMI image?

It looks as though the resolv.conf option use-vc is being ignored on an Amazon AMI (latest 2016.09 version). Consider the following: [hadoop@ip-172-20-40-202 ~]$ cat /etc/resolv.conf search default....
0
votes
1answer
43 views

I'm trying to ascertain how is my Networkmanager receives specific name server information- possibly Cobbler related

When I: cat /etc/resolve.conf I see: # Generated by NetworkManager nameserver 10.100.48.19 nameserver 10.100.48.17 When I change this info then reboot, the original information returns. I'm ...
0
votes
0answers
414 views

Unkown File permissions for /etc/resolv.conf

I am unable to ping any url (for example www.google.com), neither any of the website is working. However, I can ping static IPs (E.g. 8.8.8.8). A little debugging showed that the issue is /etc/resolv....
0
votes
1answer
1k views

resolvconf coupled with dnsmasq and lxd

Q: How do I programmatically add a persistent resolvconf entry for my lxd based dnsmasq? I have a very base installation of Ubuntu 16.04 server. I have installed and configured lxd and created a ...
0
votes
0answers
167 views

RHEL resolv.conf search domains ordering constraints?

I can't seem to find anything (Google, man pages) on what the order of the search line should be used when searching for a host against DNS with multiple levels of subdomains. host and dig work ...
3
votes
1answer
411 views

Search option in resolv.conf getting overwritten by prepend statement in dhclient.conf

I have setup a DNS server for my department which is running FreeBSD 10.2. It is currently connected to the campus internet and receiving its address via dhcp, so /etc/resolv.conf looks like this: #...
-1
votes
1answer
539 views

bad localhost resolution on linux [closed]

$ dig @127.0.0.1 localhost $ dig @127.0.0.1 localhost. ;localhost. IN A ;; ANSWER SECTION: localhost. 604800 IN A 127.0.0.1 ;; AUTHORITY SECTION: localhost. 604800 IN NS ...
1
vote
0answers
309 views

NSD/BIND — how to log dns resolver ip and edns

Do BIND and NSD support verbose logging of the DNS resolver's ip address for a query? If the vanilla releases do support that, what's the best practice for enabling/configuring that functionality. ...
0
votes
1answer
582 views

Debian Remove a Line from Resolv.conf

I was trying to change the Google DNS servers to OpenDNS in my resolv.conf file and accidentally added them incorrectly. Now my resolv.conf file looks like this: # Dynamic resolv.conf(5) file for ...
-1
votes
1answer
55 views

resolve a previously failing url without editing resolv.conf

I want to ping a some website from my machine. But currently its failing to resolve ubuntu % nslookup somewebsite.in ...
0
votes
1answer
369 views

Is `127.0.0.1` a special token for Ubuntu 14 LTS `resolvconf` when DHCP pushes DNS settings?

Dear Linux Graybeards, Is 127.0.0.1 a magic token for resolvconf in Ubuntu 14 LTS when using DNS settings pushed by DHCP? I'm using Ubuntu 14.0.3 (LTS) in AWS (ami-0f8bce65) with custom DNS settings ...
3
votes
2answers
609 views

DNS lookups eventually become consistently slow in long lived ruby process

I have a Ruby application running on an Ubuntu server, and this application frequently has to make HTTP requests to other services. Some of those services are on an internal domain, some are ...
0
votes
1answer
1k views

How to automatically add localhost DNS server (dnsmasq) to resolv.conf

I did the steps at https://wiki.archlinux.org/index.php/OpenVPN#DNS to set up DNS with OpenVPN so that anytime the OpenVPN connects or disconnects, it automatically updates /etc/resolv.conf. The ...
8
votes
3answers
10k views

How to persist resolv.conf options such as rotate, timeout in CentOS?

CentOS will wipe out any manual changes made to /etc/resolv.conf periodically. The defaults in Linux are poor in terms of failing over in a reasonable time (query name servers in same order every time,...
6
votes
2answers
5k views

OpenVPN and systemd-resolved

How does one use the dns pushed via an openvpn server with systemd-resolved ? Before I decide to 'upgrade' to systemd-networkd. I could use some variant of openvpn-resolv-conf script to call ...
0
votes
0answers
119 views

Sendmail has stopped working after editing resolv.conf. Why?

I previously resolved an issue with upstream timeout errors by changing the nameservers in my resolv.conf to Google's nameservers. While the upstream timeout and 504 errors were sorted by doing this, ...
1
vote
2answers
489 views

Linux DMZ server internal and external DNS resolving [duplicate]

I have a mailserver that should resolve everything from mydomain.com to an internal DNS server and everything else (to send email) from an external DNS server. The internal DNS server can't resolve (...
2
votes
2answers
2k views

Puppet: How to set line order within a file?

Linux servers in my company are managed by Puppet. There's a DNS module which configures /etc/resolv.conf on all servers based on physical location which is configured as a facter value. As you know ...
1
vote
1answer
156 views

nameserver not falling back

I'm trying to use several nameserver, each one is able to resolve some hosts the other does not. Here is my resolv.conf : options timeout:1 # This one is used to resolve hostnames for servers ...
2
votes
1answer
1k views

resolv.conf “search” ignored

my /etc/resolv.conf file is quite basic, something like: # Generated by NetworkManager domain subdomain.example.org search subdomain.example.org nameserver 192.0.2.100 nameserver 192.0.2.200 From ...
0
votes
0answers
126 views

tcpdump returns no multicast traffic when a DNS entry is being used in resolv.conf

I have noticed on a 6.5 Centos host that when I am using tcpdump to determine if a multicast source is being received/ sent that it does appear to get any results when I have a DNS registered in the /...
0
votes
1answer
686 views

Debian 6 Not resolving hostnames

Regards, I've run into the following issue recently following an intrusion in to my VPS: Although resolv.conf is properly configured with the correct DNS servers the VPS can not resolve hosts. I ...
-2
votes
1answer
700 views

When to use resolv.conf? [closed]

I understand resolv.conf file is used by Linux to resolve DNS lookup but I cant figure if I need to edit this file in my case. My Scenario: I am not hosting the DNS on my vps machine. I have ...
4
votes
3answers
5k views

Sendmail and nslookup resolution problems

On my Ubuntu server I've been trying to get the PHP mail() function to work by installing sendmail (I also have postfix installed but I gave up on it). However, when I try to send mail it gets queued ...
1
vote
2answers
2k views

127.0.0.1 in /etc/resolv.conf file (Debian)

I am not running DNS server on my Debian machine. However, file resolv.conf contains the following lines: nameserver 127.0.0.1 nameserver 213.186.33.99 search ovh.net Is it normal to have line ...