Don't look for IP v6 addresses if no IP v6 support complied into PHP#40821
Don't look for IP v6 addresses if no IP v6 support complied into PHP#40821walec51 wants to merge 1 commit intonextcloud:masterfrom
Conversation
Signed-off-by: Adam Walczak <[email protected]>
Altahrim
left a comment
There was a problem hiding this comment.
Well spotted :)
I think it would be better to avoid AAAA lookup if IPv6 isn't supported.
Something like this on line 78:
$dnsTypes = defined('AF_INET6')
? [DNS_A, DNS_AAAA, DNS_CNAME]
: [DNS_A, DNS_CNAME];|
The php constant I assume, because the module is enabled by default, that's the case for most system packages, but we don't list sockets as required php module on https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation. If we depend on it, we should add it there as well. |
|
What's the progress on this? In my cluster, coreDNS logs On a side note: Marking and locking the corresponding issue #33567 as "too heated", when people are simply complaining (without any "heat" involved), does not help anyone. Instead, it shows how little is cared in this case, which, I think, is sad, more than anything else. |
|
We can detect IPv6 with Following my previous comment it could be: $dnsTypes = inet_pton('::1') === false
? [DNS_A, DNS_CNAME]
: [DNS_A, DNS_AAAA, DNS_CNAME]; |
Closes #33567