Skip to content

Commit

Permalink
Merge pull request #43 from kubashin-a/fqdn-ptr
Browse files Browse the repository at this point in the history
Use FQDN as PTR name instead of octet
  • Loading branch information
solarkennedy committed Apr 5, 2014
2 parents d0db3d3 + 15b231d commit 1db29b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/record/a.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
$reverse_zone = inline_template('<%= @ip.split(".")[0..-2].reverse.join(".") %>.IN-ADDR.ARPA')
$octet = inline_template('<%= @ip.split(".")[-1] %>')

dns::record::ptr { $octet:
dns::record::ptr { "$octet.${reverse_zone}":
host => $octet,
zone => $reverse_zone,
data => "${host}.${zone}"
}
Expand Down

0 comments on commit 1db29b4

Please sign in to comment.