Skip to content

Commit

Permalink
Merge pull request #2 from guillaumerose/master
Browse files Browse the repository at this point in the history
.IN-ADDR.ARPA is missing when a PTR record is created with an A record
  • Loading branch information
ajjahn committed Oct 4, 2012
2 parents 1bc3914 + fe40283 commit bb1399c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Module for provisioning DNS (bind9)

Tested on Ubuntu 12.04, patches to support other operating systems are welcome.

This module depends on concat (https://github.com/ripienaar/puppet-concat).

## Installation

Clone this repo to your Puppet modules directory
Expand Down
2 changes: 1 addition & 1 deletion manifests/record/a.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

if $ptr {
$ip = inline_template('<%= data.kind_of?(Array) ? data.first : data %>')
$reverse_zone = inline_template('<%= ip.split(".")[0..-2].reverse.join(".") %>')
$reverse_zone = inline_template('<%= ip.split(".")[0..-2].reverse.join(".") %>.IN-ADDR.ARPA')
$octet = inline_template('<%= ip.split(".")[-1] %>')

dns::record::ptr { $octet:
Expand Down

0 comments on commit bb1399c

Please sign in to comment.