/etc/resolv.conf contains Domain Name System(DNS) related configuration information on Unix systems.
Questions tagged [resolv.conf]
138 questions
35
votes
2 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
- 485
- 1
- 4
- 8
32
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
- 425
- 1
- 4
- 7
29
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,215
- 10
- 53
- 81
28
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
- 413
- 1
- 5
- 7
18
votes
3 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
- 181
- 1
- 1
- 3
18
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
- 407
- 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,132
- 2
- 28
- 49
11
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
- 113
- 1
- 1
- 4
11
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
- 315
- 2
- 3
- 8
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
- 559
- 2
- 11
- 23
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
9
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
- 205
- 2
- 5
8
votes
4 answers
Why must a linux server be rebooted to properly handle a change in resolv.conf?
I know this has to just be a lack of my understanding but here's the problem.
We recently changed DNS servers from 192.168.1.1 to .2, so I went around to all 8 of my linux servers and changed /etc/resolv.conf to reflect the change. Note that…
Gray
- 244
- 3
- 8
8
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
- 394
- 3
- 6
- 21