russell.ballestrini.net/content/2015-12-16-set-dns-resolver-options.rst
russell@unturf.com 137d65cc65 Consolidate blog tags: 57 → 23 unique tags
- Fix case duplicates (guide→Guide, project→Project, etc.)
- Consolidate single-post tags into broader categories
- Add technology tags (Python, AWS, Salt, Docker, Kubernetes) to 93 posts
- Add lib/tag_stats.py tool for checking tag usage
- Update CLAUDE.md with tag guidelines
2026-01-26 09:09:53 -05:00

43 lines
977 B
ReStructuredText

Set DNS resolver options
=========================================================
:author: Russell Ballestrini
:slug: set-dns-resolver-options
:date: 2015-12-16 10:17
:tags: DevOps, Guide
:status: published
:summary:
The right way to persist resolver options across many Linux distributions.
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.
.. contents::