We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dd6f4 commit 3b7eee4Copy full SHA for 3b7eee4
func/domain.sh
@@ -491,9 +491,9 @@ is_dns_nameserver_valid() {
491
if [ ! -z "$remote" ]; then
492
zone=$USER_DATA/dns/$d.conf
493
a_record=$(echo $r |cut -f 1 -d '.')
494
- record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
495
- if [ -z "$record" ]; then
496
- echo "Error: corresponding A record $a_record.$d is not exist"
+ n_record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
+ if [ -z "$n_record" ]; then
+ echo "Error: corresponding A record $a_record.$d does not exist"
497
log_event "$E_NOTEXIST" "$EVENT"
498
exit $E_NOTEXIST
499
fi
0 commit comments