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


The file /etc/resolv.conf is used by the resolver.

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:

cat /etc/resolv.conf
; generated by /sbin/dhclient-script


  • search 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.

In the case of an Oracle database installation


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


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.

Powered by ComboStrap