Sorta finished rdns verification
This commit is contained in:
parent
35f3977ee6
commit
abfcc827d4
|
@ -243,5 +243,10 @@ if(defined $domain) {
|
||||||
print "rDNS set.\n";
|
print "rDNS set.\n";
|
||||||
}
|
}
|
||||||
do_sync $ip if (($made_modifications and !$nosync) or $fsync);
|
do_sync $ip if (($made_modifications and !$nosync) or $fsync);
|
||||||
my $domain = $def_rdns if $reset;
|
#very ugly, needs rewritten
|
||||||
print ((confirm_rdns $domain, $ip) ? "rDNS for IP $ip was successfully set to $domain." : "rDNS for IP $ip not yet resolving to $domain (check later with: host $ip)") if $verify;
|
if(defined $domain) {
|
||||||
|
print ((confirm_rdns $domain, $ip) ? "rDNS for IP $ip was successfully set to $domain." : "rDNS for IP $ip not yet resolving to $domain (check later with: host $ip)") if $verify;
|
||||||
|
} else {
|
||||||
|
print ((confirm_rdns $def_rdns, $ip) ? "rDNS for IP $ip was successfully set to $def_rdns." : "rDNS for IP $ip not yet resolving to $def_rdns (check later with: host $ip)") if $verify;
|
||||||
|
}
|
||||||
|
print "\n";
|
||||||
|
|
Loading…
Reference in New Issue