aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-02 14:05:29 -0400
committerjim-p <jimp@pfsense.org>2010-08-02 14:07:01 -0400
commit3fd6ff20fd2072e5ad9f52aaf946789abfa8447f (patch)
tree3f8260aeeacce6844fd3ba8e5679b368fdbb98bf /config/tinydns/tinydns.inc
parent4616665673ef48cd971d00c22a23ac44f3a3dd17 (diff)
downloadpfsense-packages-3fd6ff20fd2072e5ad9f52aaf946789abfa8447f.tar.gz
pfsense-packages-3fd6ff20fd2072e5ad9f52aaf946789abfa8447f.tar.bz2
pfsense-packages-3fd6ff20fd2072e5ad9f52aaf946789abfa8447f.zip
Add SOA for rdns of manual entries. (There is probably a better way to do this...)
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r--config/tinydns/tinydns.inc8
1 files changed, 7 insertions, 1 deletions
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) {