diff --git a/rdns-manager b/rdns-manager index 934255c..e8b242b 100755 --- a/rdns-manager +++ b/rdns-manager @@ -228,7 +228,7 @@ nicedie "Authoritative zone for IP $ip exists but we can't write to it. Please c if(!defined $domain and $reset) { set_ptr $ip,$def_rdns or nicedie "Failed to set rDNS for $ip to '$def_rdns'!"; print "rDNS set"; - print ((confirm_rdns $ip, $def_rdns) ? " and resolving" : " but not yet resolving (check manually with 'host $ip')") if $verify; + print ((confirm_rdns $def_rdns, $ip) ? " and resolving" : " but not yet resolving (check manually with 'host $ip')") if $verify; print "\n"; } elsif(!defined $domain and $delptr) { del_ptr $ip or nicedie "Failed to delete PTR record for $ip!"; @@ -243,7 +243,7 @@ if(defined $domain) { nicedie "Forward DNS for $domain doesn't match $ip!" unless $force or does_fqdn_match $domain, $ip; set_ptr $ip,$domain or nicedie "Failed to set rDNS for $ip to '$domain'!"; print "rDNS set"; - print ((confirm_rdns $ip, $def_rdns) ? " and resolving" : " but not yet resolving (check manually with 'host $ip')") if $verify; + print ((confirm_rdns $domain, $ip) ? " and resolving" : " but not yet resolving (check manually with 'host $ip')") if $verify; print ".\n"; } do_sync $ip if (($made_modifications and !$nosync) or $fsync);