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.
2 parents 79bcc31 + 61b32cc commit 258684bCopy full SHA for 258684b
func/domain.sh
@@ -622,7 +622,7 @@ is_dns_nameserver_valid() {
622
remote=$(echo $r |grep ".$domain.$")
623
if [ -n "$remote" ]; then
624
zone=$USER_DATA/dns/$d.conf
625
- a_record=$(echo $r |cut -f 1 -d '.')
+ a_record=${r%.$d.}
626
n_record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
627
if [ -z "$n_record" ]; then
628
check_result "$E_NOTEXIST" "IN A $a_record.$d does not exist"
0 commit comments