DA insists on using IPv6 even though it's disabled *everywhere*

FNDRNS

Verified User
Joined
Dec 14, 2020
Messages
9
We don't want to use IPv6 by default for any account or service. Yet, even after setting ipv6=0 in directadmin.conf it still uses IPv6 addresses in Apache configs as well as adding AAAA records on domain creation. We even use custom DNS templates (/usr/local/directadmin/data/templates/custom/dns_aaaa.conf) and it contains the condition |*if IS_IPV6="yes"| to make sure it's only used if IPv6 is actually enabled.

The only thing that works (for DNS only) is clearing the entire contents, but the IPv6 is still used in all Apache configs. Rewriting the configs doesn't change anything either.

Our DA version is 1.61.5, which is the latest as of this moment.
 
I think you mean Admin Level > Server Manager > IP Management? Actually I made sure all IPv6s were removed from there too, it only contains IPv4s right now.
 
Please check the content of /usr/local/directadmin/data/admin/ips/IP (where IP is your real IP address).
 
The ips directory only contains config files for v4 addresses, nothing in regards to v6 is present.
 
Actually, just pointing me in that direction helped me figure it out. Apparently all IPv4 config files had a line with linked_ips=<url-encoded IPv6>=apache=yes&dns=yes. So I removed all those, restored the custom DNS record templates, had DA rewrite the Apache configs and tried adding a domain again. It doesn't add v6 addresses anymore.

Thanks man. =]
 
Back
Top