/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.
Questions tagged [resolv.conf]
146 questions
2
votes
1 answer
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 dns
Getent never queries the nameserver (text written is…

rmeden
- 192
- 2
- 8
2
votes
1 answer
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 element in options means the exact number of DNS…

Maxim
- 21
- 2
2
votes
1 answer
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.svc.cluster.local svc.cluster.local cluster.local…

Matthew Adams
- 171
- 9
2
votes
2 answers
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 a /etc/resolv.conf file looks like so:
search…

Itai Ganot
- 10,644
- 29
- 93
- 146
2
votes
2 answers
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 what I understand, if I have a computer, say…

gregseth
- 193
- 2
- 8
2
votes
2 answers
resolv.conf search suffix limited to six domains and 256 characters
Is there a way to increase the resolv.conf search suffix limitation beyond six domains and 256 characters? This is an issue for an environment that has well over six domains to consider.
I realize that having more suffixes will delay resolution in…

nice_line
- 149
- 2
- 7
2
votes
1 answer
What for is /etc/resolv.conf needed in newest Centos and Fedora?
In newest Fedora and Centos configuration of dns is in /etc/sysconfig/network-scripts/ifcg-eth0 (or other interface config). So what for is still /etc/resolv.conf needed. Since its no longer used. (I tested this on new fedora 18 instalation and…

B14D3
- 5,188
- 15
- 64
- 83
2
votes
1 answer
which RPM provides the file resolv.conf in Centos 6
Which RPM provides the file resolv.conf in Centos 6?

edotan
- 1,876
- 13
- 39
- 57
2
votes
1 answer
DNS resolver prefers IPv6 CNAME in search list over IPv4 response
One of my my domains (lets say hackedd.nl) has a catch-all CNAME record pointing to hackedd.nl, which has both A and AAAA records. This all seems to work fine.
However, if the /etc/resolv.conf file on my server has a line specifying search…

hackedd
- 123
- 3
2
votes
3 answers
/etc/resolv.conf keeps resetting itself
I'm running some tests on a Debian server. The network in which this server is located has two DNS servers (I don't know why and I can't change this). I used to need to point /etc/resolv.conf to one of these servers and I recently had to change…

André Caron
- 161
- 1
- 1
- 7
2
votes
2 answers
Adding search to resolv.conf prevents FQDN searches
I added the following line to my resolv.conf to allow for shorthand querying servers on my local domain.
search local.
If I have a server named myserver.local I can ping the server using "ping myserver", however if I try to "ping myserver.local" it…

Justin
- 31
- 1
- 4
2
votes
3 answers
DNS wildcard and /etc/resolv.conf problem
I searched through google.com but can't find an answer... So I asked here.
This is the problem:
I build a DNS test environment on my PC which hostname is gamepc.
The DNS server (bind9) has a wildcard record:
* IN A 192.168.0.1
And the…

fubupc
- 83
- 2
- 8
2
votes
5 answers
resolv.conf after reboot on CentOS 5.5 EC2 instance
I'm having trouble getting my CentOS 5.5 EC2 instances (both i386 and x86_64) to properly populate resolv.conf after booting. No matter what I do, I end up with the default EC2 resolv.conf:
; generated by /sbin/dhclient-script
search…

organicveggie
- 1,071
- 3
- 15
- 27
2
votes
1 answer
How to configure the timeout that ping uses to resolve a hostname with first and second name servers
According to the man page for resolv.conf, I should be able to specify a few options for how the resolver will resolve a given hostname for lookup: http://linux.die.net/man/5/resolv.conf
I know my nameservers are local and should respond quickly,…

Zak
- 1,032
- 2
- 15
- 25
2
votes
1 answer
Create a simple and fixed dns server entry on Ubuntu 8.04 Hardy LTS
When this Ubuntu Hardy server comes up it is not always guaranteed that the dns settings are correctly, if the network cable was not connected during boot.
I would prefer a simple fast and fixed dns setup.
I do not have the knowledge of the…

user12096
- 927
- 6
- 23
- 39