diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2012-03-29 19:43:18 +0200 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2012-03-29 19:44:53 +0200 |
commit | fb0938204019fd14b030605ca8047f1c623bc38c (patch) | |
tree | ff366df4d191a1ff3418106f9fc5a8b8e1b2b712 /templates | |
parent | fa03e03fce3d604eeb90bdf11bf574f3b70845dc (diff) | |
download | puppet-bind-fb0938204019fd14b030605ca8047f1c623bc38c.tar.gz puppet-bind-fb0938204019fd14b030605ca8047f1c623bc38c.tar.bz2 |
Fix PTR by calculating arpa zones with IPAddr.new(host).reverse
Diffstat (limited to 'templates')
-rw-r--r-- | templates/zone-header.erb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/zone-header.erb b/templates/zone-header.erb index da93b31..418aef8 100644 --- a/templates/zone-header.erb +++ b/templates/zone-header.erb @@ -1,5 +1,8 @@ ; File managed by puppet $TTL <%=zone_ttl%> +<% if zone_origin -%> +$ORIGIN <%=zone_origin%> +<% end -%> @ IN SOA <%=name%>. <%=zone_contact%>. ( <%=zone_serial%> ; serial <%=zone_refresh%> ; refresh |