From 1f421d2b7789b0cab511809a1717f46738bef006 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 16 Dec 2015 10:31:34 -0500 Subject: [PATCH] new file: content/2015-12-16-ubuntu-set-dns-resolver-options.rst --- ...-12-16-ubuntu-set-dns-resolver-options.rst | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 content/2015-12-16-ubuntu-set-dns-resolver-options.rst diff --git a/content/2015-12-16-ubuntu-set-dns-resolver-options.rst b/content/2015-12-16-ubuntu-set-dns-resolver-options.rst new file mode 100644 index 0000000..7d9b774 --- /dev/null +++ b/content/2015-12-16-ubuntu-set-dns-resolver-options.rst @@ -0,0 +1,39 @@ +Set DNS resolver options +========================================================= + +:author: Russell Ballestrini +:slug: set-dns-resolver-options +:date: 2015-12-16 10:17 +:tags: Operations +:status: published + +I desire the following options in `/etc/resolv.conf`: + +.. code-block:: bash + + rotate timeout:1 attempts:1 + +Ubuntu or Debian +---------------- + +For Ubuntu or Debian based systems, place the options in +`/etc/resolvconf/resolv.conf.d/base`: + +.. code-block:: bash + + 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`: + +.. code-block:: bash + + RES_OPTIONS="rotate timeout:1 attempts:1" + +Then restart the host, or at least networking.