Fixed DNS templates and added support for Ubuntu 12.04 's way of creating resolv.conf.
This commit is contained in:
parent
f72325de30
commit
b6d34a1cf2
4 changed files with 18 additions and 1 deletions
|
@ -14,9 +14,11 @@ $ORIGIN <%= zone %>.
|
|||
;
|
||||
@ IN NS <%= v['ns'] %>.
|
||||
<% end -%>
|
||||
<% if slaves != [] %>
|
||||
<% slaves.each_pair do |k, v| -%>
|
||||
@ IN NS <%= v['ns'] %>.
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<% if zone.match(/\//) %>
|
||||
$INCLUDE <%= zonedir %>/db.<%= zone.sub(/\//, '-') %>-dynamic
|
||||
$INCLUDE <%= zonedir %>/db.<%= zone.sub(/\//, '-') %>-static
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue