cookbook 'dns_caching', '= 1.1.2'
dns_caching (3) Versions 1.1.2 Follow0
Installs dnsmasq to provide DNS caching
cookbook 'dns_caching', '= 1.1.2', :supermarket
knife supermarket install dns_caching
knife supermarket download dns_caching
Description
This cookbook installs and configures dnsmasq for local DNS caching. It relies on Opscode's resolver cookbook to update /etc/resolv.conf on all systems except Ubuntu 12+ systems.
Requirements
Tested on Ubuntu, RHEL, and CentOS systems.
Usage
Create resolver attributes to define DNS nameservers and search domains, preferably at the environment level. The first DNS nameserver defined must be the loopback interface address, usually 127.0.0.1. Once the dns_caching cookbook is assigned to a node and the resolver attributes are defined, the default recipe will install dnsmasq and use the resolver cookbook to update /etc/resolv.conf. On Ubuntu 12+ systems, the resolver cookbook is not used and instead dnsmasq is configured to ignore /etc/resolv.conf and other configuration files created by resolvconf and instead use it's own configuration for nameserver definitions. The resolvconf service will automatically update /etc/resolv.conf to direct DNS requests to dnsmasq once the package is installed.
Dependent cookbooks
resolver ~> 1.1.4 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.1.2 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/8b9fa54e455a23fb58821860/dns_caching/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/8b9fa54e455a23fb58821860/dns_caching/metadata.rb:1
1.1.2 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/8b9fa54e455a23fb58821860/dns_caching/metadata.rb:1