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

About

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

Check the DNS nameserver used

How to check the DNS nameserver used

Resolvectl

resolvectl status
Global
         Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (eth0)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 213.186.33.99
       DNS Servers: 213.186.33.99
        DNS Domain: openstacklocal

Link 3 (wg0)
    Current Scopes: DNS
         Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 1.1.1.1
       DNS Servers: 1.1.1.1
        DNS Domain: ~.

systemd-resolve

systemd-resolve --status
Global
         Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (eth0)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS
                    DNSSEC=no/unsupported
Current DNS Server: 213.186.33.99
       DNS Servers: 213.186.33.99
        DNS Domain: openstacklocal

Link 6 (wg0)
    Current Scopes: none
         Protocols: -DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS
                    DNSSEC=no/unsupported

In the case of an Oracle database installation

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

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.





Discover More
Map Of Internet 1973
DNS - nslookup command line

Nslookup is a DNS client program to query (ie lookup) domain name servers and get back DNS record information nslookuphost fileping Nslookup has two modes: The local DNS file is /etc/resolv.conf...
Card Puncher Data Processing
EBS - E-Business Suite 12.1.1 Standard Installation on Linux OEL 5.3

/appsutil/log/ /logs first line Oracle® E-Business Suite Installation Guide: Using Rapid Install Release 12.1 (12.1.1) Part...
How to see and update the Fully Qualified Domain Name (FQDN) on Linux

This article shows you how to manage the Fully Qualified Domain Name (FQDN) in Linux You can check: * the FQDN * or the domain name The recommended method of setting the FQDN is to...
Linux - Dns

Name Service Switch configuration file Example: host resolution /etc/host.conf: Resolver configuration file See
Linux - Network

Network management on Linux See Setting the hostname DNS See Enter this parameter: See also Dhcp Check: see Set up the ethernet network adapter interface (local connection) The...
Oracle Database 11gr2 Typical Installation
Oracle Database - Installation 11g Release 2 (11.2) on Linux OEL 5 (X86)

Installation of Oracle Database 11g Release 2 (11.2) on Oracle Enterprise Linux 5. Linux OEL installation login as root RAM: At least 1 GB swap space The following table describes...
Oracle Database Installationl Location 11gr2 Oel Linux X86 64
Oracle Database 11gR2 - Installation on Linux OEL 5 Update 5 (x86_64)

Installation of Oracle Database 11g Release 2 (11.2) x86_64 on Oracle Enterprise Linux 5 Update 5 on the file system (ie without ASM) or GRID. Linux OEL installation login as root ...



Share this page:
Follow us:
Task Runner