Cookbooks
bind
documentation
Bind Secondary Zone

Back to resource list

bind_secondary_zone

This resource will configure a zone to be pulled from a primary name server.

Actions

ActionDescription
:createCreates a BIND secondary zone

Properties

NameTypeDefaultDescription
bind_configStringdefaultName of the bind_config resource to notify actions on
file_nameStringname propertyName of the file to store the zone in. Used when you wish to have the same zone with different content in different views.
optionsArray[]Array of option strings. Each option should be a valid BIND option minus the trailing semicolon.
primariesArrayrequiredAn array of IP addresses used as the upstream master for this zone. Is mandatory and has no default.
viewStringDefaults to the value from the bind_config propertyName of the view to configure the zone in
zone_nameStringThe zone name of the zone. Used only if the name property does not match the zone name.

Examples

bind_secondary_zone 'example.com' do
  primaries [
    '10.1.1.1',
    '10.2.2.2'
  ]
end
 
bind_secondary_zone 'example.org' do
  primaries [
    '10.1.1.1',
    '10.2.2.2'
  ]
 
  options [
    'zone-statistics full'
  ]
end