Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid IPv6 in system DNS queries by default (zio#2280)
Currently, there are cases where users cannot use IPv6 due to their network infrastructure not supporting it. Therefore, we should not resolve hostnames to IPv6 addresses unless told otherwise. This commit defaults DNS queries to IPv4-only. It also allows users to resolve IPv6 addresses by setting the system property `java.net.preferIPv6Addresses`. /claim zio#2280 Reference: https://docs.oracle.com/javase/8/docs/technotes/guides/net/ipv6_guide/
- Loading branch information