Cookbooks
bind
documentation
Bind Forward Zone

Back to resource list

bind_forward_zone

This resource will configure a forwarding only zone.

Actions

ActionDescription
:createCreates a BIND forward zone

Properties

NameTypeDefaultDescription
bind_configStringdefaultName of the bind_config resource to notify actions on
forwardString (only or first)onlySet to first if you wish to try a regular lookup if forwaridng fails. only will cause the query to fail if forwarding fails.
forwardersArray[]An array of IP addresses to which requests for this zone will be forwarded to. An empty array will disable forwarding for this zone if globally configured
viewStringDefaults to the value from the bind_config propertyName of the view to configure the zone in

Examples

bind_forward_zone 'example.com' do
  forwarders [
    '10.1.1.1',
    '10.2.2.2'
  ]
end
 
bind_forward_zone 'example.org' do
  forward 'first'
  forwarders ['10.0.1.1', '10.2.1.1']
end