From 12bc48e9cf64848eeb66bc622aeba42f08b22658 Mon Sep 17 00:00:00 2001 From: Maff Date: Tue, 11 Feb 2014 14:42:27 +0000 Subject: [PATCH] Fixed bug preventing rDNS records from being set without --force --- rdns-manager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdns-manager b/rdns-manager index 951aa3f..934255c 100755 --- a/rdns-manager +++ b/rdns-manager @@ -240,7 +240,7 @@ if(!defined $domain and $reset) { print "rDNS for IP $ip: ".get_ptr $ip;print "\n";exit; } if(defined $domain) { - nicedie "Forward DNS for $domain doesn't match $ip!" unless does_fqdn_match $ip or $force; + 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;