New Supermarket Announcements!

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 supermarket mailing list.

Select Supported Platforms


bind9 (1) Versions 0.1.3

Installs/Configures bind9

cookbook 'bind9', '~> 0.1.3'
cookbook 'bind9', '~> 0.1.3'
knife cookbook site install bind9
knife cookbook site download bind9


This cookbook takes care of the installation and configuration of BIND9. At the moment you're able to define some global variables and to manage your zonefiles via data bags (json example below). Besides that there's not much to see, e.g. no DNSSEC, no configurable logging, no rndc shell operations and no automatic serial incrementation or other safety checks (named-checkconf, etc.).

It's my intention to round its edges over time. If you want to help feel free to contribute!

Please keep in mind that this cookbook is far from finished and not adequately tested. It could break your setup. Use at YOUR OWN RISK!



  • Debian
  • Ubuntu


  • node[:bind9][:enable_ipv6] - Enables BIND to listen on an IPv6 address. Default is: On
  • node[:bind9][:allow_query] - Allow clients to query the nameserver. Default is: anyone
  • node[:bind9][:allow_recursion] - Allow recursive name resolution. Default is: none (to prevent DNS cache poisoning)
  • node[:bind9][:allow_update] - Allow dynamic DNS updates. Default is: none
  • node[:bind9][:allow_transfer] - Allow zone transfers globally. Default is: none
  • node[:bind9][:enable_forwarding] - Enables forwarding of requests. Default is: No forwarding
  • node[:bind9][:forwarders] - Array for forwarding DNS. Default is: and (Google DNS)


Add "recipe[bind9]" directly to a node or a role. If you want to use BIND9 for serving domains you may add the appropriate data via data bags (example below). Please note that the data bag's structure is mandatory except: * TTL for DNS records (if you decide to leave it empty, the global TTL will take over)

$ knife data bag create zones
$ knife data bag create zones exampleDOTcom
$ ... do something ...
$ knife data bag from file zones exampleDOTcom.json

  "id": "exampleDOTcom",
  "domain": "",
  "type": "master",
  "allow_transfer": [ "",
                      "" ],
  "zone_info": {
    "global_ttl": 300,
    "soa": "",
    "contact": "",
    "serial": 2011091402,
    "nameserver": [ "",
                    "" ],
    "mail_exchange": [{
      "host": "ASPMX.L.GOOGLE.COM.",
      "priority": 10
      "host": "ALT1.ASPMX.L.GOOGLE.COM.",
      "priority": 20
      "host": "ALT2.ASPMX.L.GOOGLE.COM.",
      "priority": 20
      "host": "ASPMX2.GOOGLEMAIL.COM.",
      "priority": 30
      "host": "ASPMX3.GOOGLEMAIL.COM.",
      "priority": 30
      "host": "ASPMX4.GOOGLEMAIL.COM.",
      "priority": 30
      "host": "ASPMX5.GOOGLEMAIL.COM.",
      "priority": 30
    "records": [{
      "name": "www",
      "type": "A",
      "ip": ""
      "name": "img",
      "ttl": 30,
      "type": "A",
      "ip": ""
      "name": "mail",
      "type": "CNAME",
      "ip": ""

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.