-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't look for IP v6 addresses if no IP v6 support complied into PHP #40821
Conversation
Signed-off-by: Adam Walczak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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