Commit Diff
Diff:
9bcc7d5dd8f2ff81cc1185553ce36f64284fabcb
b99a91cd26c787483f0385ff2410eeea8eee8c5c
Commit:
b99a91cd26c787483f0385ff2410eeea8eee8c5c
Tree:
77665ee04f6012b699009d280c6d6cd775f31b12
Author:
jrmu <jrmu@ircnow.org>
Committer:
jrmu <jrmu@ircnow.org>
Date:
Mon Mar 6 17:14:21 2023 UTC
Message:
Fix rDNS bug
blob - 5f975bc20b60739da562c37e93b5bb2017d38587
blob + ad797c7bf421778b4515b7ced6a616e96b7a2b01
--- DNS.pm
+++ DNS.pm
@@ -150,7 +150,7 @@ sub setrdns {
my $name = substr($reversed, 0, 32-$subnet/4);
$name = join('.', split(//, $name));
# delete old PTR records, then set new one
- return setdns($name, $origin) && setdns($name, $origin, "PTR", $hostname);
+ return setdns($name, $origin) && setdns($name, $origin, "PTR", $hostname.".");
}
# delete rdns of $ip6 given $subnet
# return true on success; false on failure
IRCNow