How to change the DNS server orders in a DNS client machine

(Doc ID 1516015.1)

Last updated on NOVEMBER 07, 2017

Applies to:

Linux OS - Version Oracle Linux 4.4 and later
Linux x86-64
Applies to any kernel Version.

Goal

There are situations when the primary DNS server (first server entry found in resolv.conf) mentioned in /etc/resolv.conf of the client DNS machine, is down and the client is still trying to communicate through the primary server.  In such a situation you can quickly reorder the DNS server list to avoid DNS lookup delays.

The steps mentioned in this document just does the same by simple manual reordering. For more details on resolv.conf you may refer to '$ man resolv.conf'.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms