From 3fd6ff20fd2072e5ad9f52aaf946789abfa8447f Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 2 Aug 2010 14:05:29 -0400 Subject: Add SOA for rdns of manual entries. (There is probably a better way to do this...) --- config/tinydns/tinydns.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config/tinydns') diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc index f002a920..21b7ea2c 100644 --- a/config/tinydns/tinydns.inc +++ b/config/tinydns/tinydns.inc @@ -532,8 +532,14 @@ function tinydns_create_zone_file() { } } $record_data = tinydns_get_rowline_data($ipaddress, $domain['recordtype'], $ttl, $hostname, $domain['rdns'], $dist); - if($record_data) + if($record_data) { fwrite($fd, $record_data . "\n"); + if ($domain['rdns'] || ($domain['recordtype'] == 'PTR')) { + $rip = tinydns_get_ip_subnet_arpa($ipaddress, 32); + if($rip) + fwrite($fd, ".{$rip[1]}::{$config['system']['hostname']}.{$config['system']['domain']}\n"); + } + } /* process load balanced items */ if($domain['row']) { foreach($domain['row'] as $row) { -- cgit v1.2.3