/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.
Questions tagged [resolv.conf]
146 questions
36
votes
3 answers
How is DNS lookup configured for OSX Mountain Lion?
If I cat my resolv.conf, I see this message:
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically…

Ben Flynn
- 495
- 1
- 4
- 8
33
votes
8 answers
NetworkManager is not changing /etc/resolv.conf after openvpn dns push
I've got a problem which is "NetworkManager is not updating /etc/resolv.conf after openvpn connection with dns push configured".
Here's my openvpn server config: (I've changed domain name to ABC.COM for security reason…

jaor
- 435
- 1
- 4
- 7
32
votes
6 answers
Second nameserver in /etc/resolv.conf not picked up by wget
My resolv.conf looks like this:
; generated by /sbin/dhclient-script
search mcdc
nameserver 10.0.4.48
nameserver 8.8.8.8
If I do nslookup www.google.com it works
nslookup www.google.com
;; Got SERVFAIL reply from 10.0.4.48, trying next…

benhsu
- 453
- 2
- 5
- 7
30
votes
1 answer
MySQL [Warning] IP address could not be resolved
I'm running MySQL5.6.3 on a CentOS 6.1 virtual machine running on Windows XP in VirtualBox.
The network card is configured in bridge mode, so my physical & virtual machines share the same ethernet card.
On the virtual machine, everything works fine:…

BenMorel
- 4,507
- 10
- 57
- 85
20
votes
4 answers
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 and DNS queries through it.
But know I have another…

Alfredo Palhares
- 301
- 1
- 2
- 3
20
votes
2 answers
Adjusting how long Linux takes to fail over to backup DNS server listed in resolv.conf
Currently I'm using the plain vanilla linux configuration for resolv.conf... something like:
nameserver 123.123.123.123
nameserver 8.8.8.8
When 123.123.123.123 goes down DNS queries become impossible slow, I'm assuming that Linux retries the first…

Adam Terrey
- 437
- 1
- 5
- 8
18
votes
6 answers
Set DNS server on OS X even when without internet connection
I have installed, configured DNS server(local instance of Dnsmasq) which resolves to localhost as I want, all OK.
When I go offline, it stops working, because OS X empty content of resolv.conf and ignore attempt to reflect changes in this file.
Any…

daeltar
- 311
- 1
- 4
- 8
12
votes
7 answers
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, 5 second timeout, 2 retries).
Hence, the…

Adam C
- 5,222
- 2
- 30
- 52
12
votes
1 answer
How to set DNS exclusively for a Network Namespace in Linux
I've created a network namespace in Linux.
I thought there was a resolv.conf file for each namespaces created but it's not the case on my system. I don't have the following path /etc/netns/namespace_name/resolv.conf.. The folder netns doesn't…

jayce153
- 123
- 1
- 1
- 4
12
votes
3 answers
Configure a DNS server per nic interface (eth0 / eth1)?
How would you configure a DNS Name Server per NIC (eth0 vs eth1) interface on RHEL/Centos 6?
E.g.
eth0 is on subnet 10.0.0.1/24
eth1 is on subnet 192.168.0.1/24
Any requests sent over eth0 should use DNS server 10.0.0.2.
Any requests sent over eth1…

DevGav
- 325
- 2
- 3
- 8
11
votes
2 answers
order of nameservers in resolv.conf
In which oder are the nameservers stated in resolv.conf used for name resolution?
Is there a way to influence this order?
Is this behavior distribution dependent? (I'm using Debian Squeeze)

Scolytus
- 434
- 3
- 7
- 22
11
votes
3 answers
Vagrant/VirtualBox can't resolve some domains from w/in VM
Just trying out VirtualBox & Vagrant and my initial lucid64 VM can't resolve us.archive.ubuntu.com but can resolve security.ubuntu.com, google.com and www.apple.com (but not apple.com w/out the www?!?!).
The host that the VM is running in can…

Meltemi
- 579
- 2
- 11
- 24
10
votes
3 answers
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 resolvconf to manage entries in /etc/resolv.conf on…

sw1nn
- 161
- 1
- 2
- 7
10
votes
2 answers
Why nslookup doesn't use mdns while ping do?
In dnsmasq.conf:
address=/local/127.0.0.1
In resolv.conf:
# Generated by NetworkManager
domain example.com
search example.com
nameserver 127.0.0.1
nameserver 10.66.127.17
nameserver 10.68.5.26
I can use nslookup:
# nslookup www.local
Server: …

dspjm
- 215
- 2
- 6
9
votes
3 answers
Ubuntu resolv.conf, not going to next nameserver?
I am using Ubuntu 10.04 Desktop, which comes by default with the "Network Manager" (which I am highly suspicious of).
I am having an issue with resolving DNS zones on 2 different nameservers.
resolv.conf:
$ cat /etc/resolv.conf
#Generated by…

Cory J
- 1,568
- 5
- 19
- 28