{"name":"resolver","version":"2.0.1","description":"Configures /etc/resolv.conf via attributes","long_description":"# resolver Cookbook\n\n[![Build Status](https://travis-ci.org/chef-cookbooks/resolver.svg?branch=master)](http://travis-ci.org/chef-cookbooks/resolver) [![Cookbook Version](https://img.shields.io/cookbook/v/resolver.svg)](https://supermarket.chef.io/cookbooks/resolver)\n\nConfigures /etc/resolv.conf, unless the nameservers attribute is empty. Search will be excluded if empty.\n\n## Requirements\n\n### Platforms\n\n- Debian/Ubuntu\n- RHEL/CentOS/Scientific/Amazon/Oracle\n- Fedora\n- FreeBSD/OpenBSD\n- Mac OS X\n- Solaris\n- openSUSE / SUSE Enterprise\n\n### Chef\n\n- Chef 12.1+\n\n### Cookbooks\n\n- none\n\n## Attributes\n\nSee `attributes/default.rb` for default values.\n\n- `node['resolver']['search']` - Search list for host-name lookup.\n- `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**.\n- `node['resolver']['options']` - a hash of resolv.conf options. See **Usage** for examples.\n- `node['resolver']['domain']` - Local domain name. if `nil`, the domain is determined from the local hostname returned by `gethostname(2)`.\n\n## Recipes\n\n### default\n\nConfigure /etc/resolv.conf based on attributes.\n\n## Usage\n\nUsing the default recipe, set the resolver attributes in a role, for example from my base.rb:\n\n```ruby\n\"resolver\" => {\n  \"nameservers\" => [\"10.13.37.120\", \"10.13.37.40\"],\n  \"search\" => \"int.example.org\",\n  \"options\" => {\n    \"timeout\" => 2, \"rotate\" => nil\n  }\n}\n```\n\nThe resulting `/etc/resolv.conf` will look like:\n\n```text\nsearch int.example.org\nnameserver 10.13.37.120\nnameserver 10.13.37.40\noptions timeout:2 rotate\n```\n\n## License & Authors\n\n- Author:: Joshua Timberman ([joshua@chef.io](mailto:joshua@chef.io))\n\n```text\nCopyright 2009-2016, Chef Software, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","maintainer":"Chef Software, Inc.","maintainer_email":"cookbooks@chef.io","license":"Apache 2.0","platforms":{"ubuntu":">= 0.0.0","debian":">= 0.0.0","fedora":">= 0.0.0","centos":">= 0.0.0","redhat":">= 0.0.0","oracle":">= 0.0.0","scientific":">= 0.0.0","amazon":">= 0.0.0","freebsd":">= 0.0.0","openbsd":">= 0.0.0","mac_os_x":">= 0.0.0","solaris2":">= 0.0.0","opensuse":">= 0.0.0","opensuseleap":">= 0.0.0","suse":">= 0.0.0"},"dependencies":{},"recommendations":{},"suggestions":{},"conflicting":{},"providing":{},"replacing":{},"attributes":{},"groupings":{},"recipes":{"resolver":"Configures /etc/resolv.conf via attributes"}}