Link IPv6 / IP4

zmippie

Verified User
Joined
Apr 19, 2015
Messages
159
Because of Google Mail acting up because I didn't have a reverse DNS PTR record for IPv6, I had to add IPv6 support to my box. DirectAdmin makes most of it simple, as usual. But there's something I don't understand. When I go to "IP management", click the IPv6 address, I'm getting to a screen with some options. The explaining text which is listed below the form says (emphasis mine):

The main purpose for this feature is to link LAN IPs to external IPs,
and/or to link IPv6 IPs to IPv4 IPs.

LAN: View the details of the external IP. Link the internal IP to the external IP.
Only select Apache, do not select DNS. Add Users to external IP

IPv6: View the details of the IPv4 IP. Link the IPv6 to the IPv4. Check both DNS and Apache.

Adding a linked IP to the current IP will add the linked IP to the areas where current IP exists.
Linking an IP with dns will duplicate the A/AAAA records for the current IP with the linked IP.
Linking an IP with apache will add the linked IP into the VirtualHost with the current IP.

This feature is independant of the Multi-IP system, but they can be used together.
For example a User can have 2 IPs with the Multi-IP system, and each of those IPs can have linked IPs.

Links are not recursive, so you don't need to worry about infinite loops.

The "Apply to existing Domains" option will trigger the httpd.conf rewrites and insert A/AAAA records into the local dns zones.
Disabling this checkbox won't touch the dns or httpd.conf files, but future httpd.cont rewrites will have the linked IP added.

I'm mostly confused about the line The "Apply to existing Domains" option will trigger the httpd.conf rewrites and insert A/AAAA records into the local dns zones. I had this option enabled (default), but I don't see any AAAA record duplicates magically appear in my zone files. It seems as if this feature just doesn't work. Can anyone confirm? I've added some manually now, but it would be nice if it worked like described. Or maybe I'm not understanding the feature right?
 
Because of Google Mail acting up because I didn't have a reverse DNS PTR record for IPv6, I had to add IPv6 support to my box. DirectAdmin makes most of it simple, as usual. But there's something I don't understand. When I go to "IP management", click the IPv6 address, I'm getting to a screen with some options. The explaining text which is listed below the form says (emphasis mine):



I'm mostly confused about the line The "Apply to existing Domains" option will trigger the httpd.conf rewrites and insert A/AAAA records into the local dns zones. I had this option enabled (default), but I don't see any AAAA record duplicates magically appear in my zone files. It seems as if this feature just doesn't work. Can anyone confirm? I've added some manually now, but it would be nice if it worked like described. Or maybe I'm not understanding the feature right?

If you link an IPv6 address to an IPv4 address and use that option, the AAAA IPv6 records should be added to all domains automatically.
 
If you link an IPv6 address to an IPv4 address and use that option, the AAAA IPv6 records should be added to all domains automatically.

Thanks for confirming this Peter. But... did you ever see this happen yourself?

For clarity: did you see all A records being duplicated as AAAA records?
 
Thanks for confirming this Peter. But... did you ever see this happen yourself?

For clarity: did you see all A records being duplicated as AAAA records?

Yes. The A records will not be duplicated because an A record is an IPv4 address and an AAAA record an IPv6 addres, but everything before the A is duplicated as AAAA with after it the right IP.
 
Yes. The A records will not be duplicated because an A record is an IPv4 address and an AAAA record an IPv6 addres, but everything before the A is duplicated as AAAA with after it the right IP.

Okay, thanks/bedankt for the confirmation. That surely didn't happen here, so I'll have to look into that.
 
Duh, I've found out that made exactly the same mistake as the topic starter here:

https://forum.directadmin.com/showthread.php?t=47346&p=242996#post242996

It's not entirely obvious if the feature links IPv6 to IPv4 or vice versa. But it does say on the page what it does, so it's my own mistake here.

Solved.

But I do notice that the "Apply to existing Domains" options does not intelligently iterate the existing A-records and adds IPv6 versions of them to the zone file. It just adds the default ones that are in the template (custom or default).
 
Back
Top