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


resolver (12) Versions 1.0.2

Configures /etc/resolv.conf via attributes

cookbook 'resolver', '= 1.0.2'
cookbook 'resolver', '= 1.0.2', :supermarket
knife cookbook site install resolver
knife cookbook site download resolver
Quality -%


Configures /etc/resolv.conf, unless the nameservers attribute is empty.


See attributes/default.rb for default values.

  • node['resolver']['search'] - the search domain to use
  • node['resolver']['nameservers'] - Required, an array of nameserver IP address strings; the default is an empty array, and the default recipe will not change resolv.conf if this is not set. See Usage.
  • node['resolver']['options'] - a hash of resolv.conf options. See Usage for examples.


Set the resolver attributes in a role, for example from my base.rb:

"resolver" => {
  "nameservers" => ["", ""],
  "search" => "",
  "options" => {
    "timeout" => 2, "rotate" => nil

The resulting /etc/resolv.conf will look like:

options timeout:2 rotate

License and Author

Author:: Joshua Timberman (

Copyright 2009-2012, Opscode, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

No quality metric results found