Adjust content in /etc/resolv.conf
####Table of Contents
- Overview - What is the resolver module?
- Module Description - What does the module do?
- Setup - The basics of getting started with resolver
- Limitations - OS compatibility, etc.
##Overview
The resolver module allows you to set up the /etc/resolv.conf file.
##Module Description
The /etc/resolv.conf
file is where the server will look for the DNS resolver.
##Setup
What resolver affects:
/etc/resolv.conf
###Beginning with resolver
Resolver is very easy to use. There is no default parameters so you will have to declare it explicitly in Hiera. Then to get the following content:
domain domain.com
search domain.com
nameserver 10.2.95.1
nameserver 10.2.95.1
options rotate timeout:2
you will declare in Hiera (except for domain
, each parameter is an Array type):
resolver::domain: 'domain.com'
resolver::search:
- 'domain.com'
resolver::nameserver:
- '10.2.95.1'
- '10.2.95.1'
resolver::options:
- 'rotate'
- 'timeout:2'
##Limitations
This module has been validated on:
- Debian:
- 6.0.10 x86_64
- 7.8 x86_64
- CentOS: uuu
- 7.0 x86_64