how to add a ns records with AAAA ipv6
how to add a ns records with AAAA ipv6
Hi when i try to add a NS with IPv6 AAAA it showing error Error: IN A ns4.domain.com does not exist is by default vestacp supports only IPv4 for dns records ...?
Now DNS server are hosted with IPv6 also please add this feature.
regards,
Birender
Now DNS server are hosted with IPv6 also please add this feature.
regards,
Birender
Re: how to add a ns records with AAAA ipv6
Hi still no reply ...? from any tech guru of Vestacp
Re: how to add a ns records with AAAA ipv6
Hi any one from vestacp check this ...
this code is there in usr/locl/vesta/func/domain.sh
# Validate nameserver
is_dns_nameserver_valid() {
d=$1
t=$2
r=$3
if [ "$t" = 'NS' ]; then
remote=$(echo $r |grep ".$domain.$")
if [ ! -z "$remote" ]; then
zone=$USER_DATA/dns/$d.conf
a_record=$(echo $r |cut -f 1 -d '.')
n_record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
if [ -z "$n_record" ]; then
check_result $E_NOTEXIST "IN A $a_record.$d does not exist"
fi
fi
fi
}
This is happending when i am adding ns with ipv6 AAAA record.
Error: IN A ns2-ipv6.example.com does not exist
why its only taking ipv6 A records only for NS nameservers it should also accept AAAA record for IPV6
this code is there in usr/locl/vesta/func/domain.sh
# Validate nameserver
is_dns_nameserver_valid() {
d=$1
t=$2
r=$3
if [ "$t" = 'NS' ]; then
remote=$(echo $r |grep ".$domain.$")
if [ ! -z "$remote" ]; then
zone=$USER_DATA/dns/$d.conf
a_record=$(echo $r |cut -f 1 -d '.')
n_record=$(grep "RECORD='$a_record'" $zone| grep "TYPE='A'")
if [ -z "$n_record" ]; then
check_result $E_NOTEXIST "IN A $a_record.$d does not exist"
fi
fi
fi
}
This is happending when i am adding ns with ipv6 AAAA record.
Error: IN A ns2-ipv6.example.com does not exist
why its only taking ipv6 A records only for NS nameservers it should also accept AAAA record for IPV6