Home / Function/ anyInterfaceSupportsIpV6() — netty Function Reference

anyInterfaceSupportsIpV6() — netty Function Reference

Architecture documentation for the anyInterfaceSupportsIpV6() function in DnsNameResolver.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  866f5928_cd37_bab3_62c2_dcfee1b1b19d["anyInterfaceSupportsIpV6()"]
  a8faea52_3f45_7b36_4918_3dfb9bd6ee9b["DnsNameResolver"]
  866f5928_cd37_bab3_62c2_dcfee1b1b19d -->|defined in| a8faea52_3f45_7b36_4918_3dfb9bd6ee9b
  style 866f5928_cd37_bab3_62c2_dcfee1b1b19d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java lines 187–199

    private static boolean anyInterfaceSupportsIpV6() {
        for (NetworkInterface iface : NetUtil.NETWORK_INTERFACES) {
            Enumeration<InetAddress> addresses = iface.getInetAddresses();
            while (addresses.hasMoreElements()) {
                InetAddress inetAddress = addresses.nextElement();
                if (inetAddress instanceof Inet6Address && !inetAddress.isAnyLocalAddress() &&
                        !inetAddress.isLoopbackAddress() && !inetAddress.isLinkLocalAddress()) {
                    return true;
                }
            }
        }
        return false;
    }

Subdomains

Frequently Asked Questions

What does anyInterfaceSupportsIpV6() do?
anyInterfaceSupportsIpV6() is a function in the netty codebase, defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java.
Where is anyInterfaceSupportsIpV6() defined?
anyInterfaceSupportsIpV6() is defined in resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java at line 187.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free