Linux - The DNS resolver (/etc/resolv.conf)

1 - About

The file /etc/resolv.conf is used by the resolver a library that determines the IP address from an host name. It defines the DNS.

Two Domain Name System (DNS) resolver parameters (timeout and attempts) are set by default to low values when the operating system is installed.

Typical resolve.conf file:

[[email protected] ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search cornac.net
nameserver 192.168.2.1

where:

  • search cornac.net: The search list is normally determined from the local domain name; by default, it contains only the local domain name.
  • nameserver Name-server-IP-address: Point out to the DNS server. Up to 3 name servers may be listed.

3 - In the case of an Oracle database installation

3.1 - Options

These low values may cause attempted network connections to an Oracle database to fail. If this happens, add or update the following entries to these minimum settings in the /etc/resolv.conf file on each server node:

options attemps:5
options timeout:15

3.2 - nameserver

The nameserver is used by the listener. If the value is set with a bad DNS server, it may cause very slow connection. Suppress the parameter or set a good value.

  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at del.icio.us
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Digg
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Ask
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Google
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at StumbleUpon
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Technorati
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Live Bookmarks
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Yahoo! Myweb
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Facebook
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Yahoo! Bookmarks
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at Twitter
  • Bookmark "Linux - The DNS resolver (/etc/resolv.conf)" at myAOL
linux/resolv.conf.txt ยท Last modified: 2016/07/08 09:55 by gerardnico