summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-29 19:43:18 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2012-03-29 19:44:53 +0200
commitfb0938204019fd14b030605ca8047f1c623bc38c (patch)
treeff366df4d191a1ff3418106f9fc5a8b8e1b2b712 /templates
parentfa03e03fce3d604eeb90bdf11bf574f3b70845dc (diff)
downloadpuppet-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.erb3
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