Cookbooks
bind
documentation
Bind View

Back to resource list

bind_view

Configures a BIND view and allows you to serve different content to different clients.

Actions

ActionDescription
:createCreates a BIND view

Properties

NameTypeDefaultDescription
bind_configStringdefaultName of the bind_config resource to notify actions on
match_clientsArray[]Serve the content of this view to any client matching an IP address in this list
match_destinationsArray[]Serve the content of this view to any request arriving on this IP address
match_recursive_onlytrue, falsefalseMatch on any recursive requests
optionsArray[]Array of option strings. Each option should be a valid BIND option minus the trailing semicolon.

Examples

bind_view 'internal' do
  match_clients ['10.0.0.0/8']
  options ['recursion yes']
end
 
bind_view 'external' do
  options ['recursion no']
end