Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


dns_caching (3) Versions 1.1.2

Installs dnsmasq to provide DNS caching

cookbook 'dns_caching', '= 1.1.2', :supermarket
cookbook 'dns_caching', '= 1.1.2'
knife supermarket install dns_caching
knife supermarket download dns_caching
Quality 0%


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.


Tested on Ubuntu, RHEL, and CentOS systems.


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 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