Error adding ipv6 to domain

RickDeckard

Verified User
Joined
Mar 18, 2011
Messages
103
Dear forum users, i read with the right attention here: https://help.directadmin.com/item.php?id=353 and here: https://help.directadmin.com/item.php?id=346
Now in the last step:

PHP:
User Level -> Domain Setup -> domain.com

at the bottom of the page, you'll see "Add another IP to domain.com".  Select your new IP, and click "Add IP".
If needed, remove the other IP from the domain's IP list.

i've this error:

PHP:
Could not write domain's db file in /var/named
Unable to save dns zone: named-checkzone returned:
loading "domain.it" from "/var/named/domain.it.db.temp" class "IN"
dns_rdata_fromtext: /var/named/domain.it.db.temp:36: near '2a00:7c80:0000:00b4:0:0:0:4': bad dotted quad
zone domain.it/IN: loading from master file /var/named/domain.db.temp failed: bad dotted quad
zone domain.it/IN: not loaded due to errors.

ipv6 are added in the naserver configurations too.

Thanks
 
Post the domain.com zone file here, so we can take a look.
 
Here it is, Thanks:

PHP:
$TTL 14400
@       IN      SOA     ns1.hostmartdns.eu.      hostmaster.domain.it. (
                                                2018020801
                                                14400
                                                3600
                                                1209600
                                                86400 )

domain.it.	14400	IN	NS	ns1.hostmartdns.eu.
domain.it.	14400	IN	NS	ns2.hostmartdns.eu.


ftp	14400	IN	A	217.23.13.224
localhost	14400	IN	A	127.0.0.1
mail	14400	IN	A	217.23.13.224
pop	14400	IN	A	217.23.13.224
smtp	14400	IN	A	217.23.13.224
webmail	14400	IN	A	217.23.13.224
domain.it.	14400	IN	A	217.23.13.224
www	14400	IN	A	217.23.13.224


domain.it.	14400	IN	MX	10 mail

38bfd0126e8607775c796fbb3cc4daaf	14400	IN	CNAME	verify.bing.com.


@	14400	IN	TXT	google-site-verification=lgaVPqjJo0IyVBrZEoLYkSTD6nkXHXayVvr37ECS7Ro
_dmarc	14400	IN	TXT	"v=DMARC1; p=none; sp=none; rua=mailto:[email protected]"
_domainkey	14400	IN	TXT	"o=~"
domain.it.	14400	IN	TXT	"v=spf1 a mx ip4:217.23.13.224 -all"
x._domainkey	14400	IN	TXT	( "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5DoA11hipv3XagILd8mu447+SH6aijhLoK2ygVKuGgcl4jz3GVp1w3ENBqUbzNNopRy0rRBlOp2m1tgt75ffMBz"
					"ae2zmtFXoAvuItn6JAArXrIGBxnN2D6Ei8aGp5sCqoxsYGQneFp14Avx7NxHZbLy2yUluJKb8ipB1xy0MpCUJF1bJRUWOpXvDeQPzR4Vt1VVYofI1pm3iZjCoN3SgTCy/Y6mI19qKpC99yFuBJ775r"
					"ArjwsLq2lXWqNrf2siL+S3c7JY+9dEMDjPSqSGDE8u7JyYybk5F2dZAuySjVc4WwygbVYjGIvNoA/IV9NLyoqu7/b31Ov8KLW5y+x3mrQIDAQAB" )
 
Yesterday i had temporarily removed ipv6=1 from directadmin.conf, this morning I put it back but now i can't add ipv6 addresses anymore, directadmin show this message:


PHP:
Cannot Execute Your Request

Details

Invalid IP (1.2.3.4) or IP range (1.2.3.4-5)

Before this the panel accepted addresses in long form like:

2a00:7c80:0000:00b4:0:0:0:2 /64
 
make sure to add an empty line at the very bottom of directadmin.conf and restart directadmin.
 
Any case now in my directadmin can't assign any other ipv6 address, also i can't remove the ipv6 addresses previously assigned to 2 users.
Last but not least under Reseller -> Nameservers ipv4 used for nameserver are disappear (but nameserver works)
 
The directadmin.conf should end with an empty line or line-break... so you need to open directadmin.conf and add a line break or empty line after ipv6=1.
 
The directadmin.conf should end with an empty line or line-break... so you need to open directadmin.conf and add a line break or empty line after ipv6=1.

Many thanks, now i can add or remove ipv6 again :p
 
Error adding IPV6 to domain solved, it was caused by custom dns_a.conf added in /usr/local/directadmin/data/templates/custom :rolleyes:

Problems with Let's Encrypt was solved updating script by custombuild

PHP:
cd /usr/local/directadmin/custombuild
./build update
./build letsencrypt
 
Last edited:
Back
Top