chef-lctp/site-cookbooks/bind/README.md

29 lines
718 B
Markdown
Raw Normal View History

2014-01-27 10:38:48 +00:00
Description
===========
Install bind9 and add zones files:
Attributes
==========
node.bind.forwarders - upstream dns servers, default is ["8.8.8.8", "8.8.4.4"].
node.bind.trusted_subnets - subnets, which are allowed to query, default is ["localhost", "localnets"].
node.bind.zones - hash of wanted dns zones (see usage), default is {}.
Usage
=====
example for zones:
node.default["zones"] = {
"foo": {
"records": [
{ "name": "node0", "type": "A", "value": "172.28.128.1" },
{ "name": "node1", "type": "A", "value": "172.28.128.101" }
]
},
"128.28.172.in-addr.arpa": {
"records": [{ "name": "101", "type": "PTR", "value": "node1" }]
}
}