Random   •   Archives   •   RSS   •   About   •   Contact

Set DNS resolver options

I desire the following options in /etc/resolv.conf:

rotate timeout:1 attempts:1

Ubuntu or Debian

For Ubuntu or Debian based systems, place the options in /etc/resolvconf/resolv.conf.d/base:

rotate timeout:1 attempts:1

These options merge with the options from DHCP and end up in /etc/resolv.conf.

Then restart the host, or at least networking.

Redhat or Centos or Fedora

For Redhat, Centos or Fedora, add the following to /etc/sysconfig/network:

RES_OPTIONS="rotate timeout:1 attempts:1"

Then restart the host, or at least networking.



© Russell Ballestrini.