netty5/resolver-dns/src/test/java/io/netty/resolver/dns
Matt Ayres ba594bcf4a Fixed illegal reflective access by not relying on a sun.net.dns class. (#8318) (#8319)
Motivation

Applications should not depend on internal packages with Java 9 and later. This cause a warning now, but will break in future versions of Java.

Modification

This change adds methods to UnixResolverDnsServerAddressStreamProvider (following after #6844) that parse /etc/resolv.conf for domain and search entries. Then DnsNameResolver does not need to rely on sun.net.dns.ResolverConfiguration to do this.

Result

Fixes #8318. Furthermore, at least in my testing with Java 11, this also makes multiple search entries work properly (previously I was only getting the first entry).
2018-09-26 20:55:46 +02:00
..
DefaultAuthoritativeDnsServerCacheTest.java Correctly handle DNS redirects for NS servers that have no ADDITIONAL record (#8177) 2018-08-22 17:49:22 +02:00
DefaultDnsCacheTest.java Correctly handle hostnames with and without trailing dot in the DefaultDnsCache and use it for searchdomains. (#8181) 2018-08-10 08:53:59 +02:00
DnsNameResolverClientSubnetTest.java DNS Resovler tests should be more explicit about ndots 2017-07-12 15:49:45 -07:00
DnsNameResolverTest.java Don't cause ClassCastException if registration fails during constructing DnsNameResolver. (#8280) 2018-09-11 20:34:37 +02:00
DnsServerAddressesTest.java DNS move JDK DNS resolution out of DnsServerAddresses static initialization 2017-04-06 18:09:58 -07:00
NameServerComparatorTest.java Correctly handle DNS redirects for NS servers that have no ADDITIONAL record (#8177) 2018-08-22 17:49:22 +02:00
SearchDomainTest.java Fix typos in docs. 2018-02-14 08:44:07 +01:00
TestDnsServer.java Correctly handle DNS redirects for NS servers that have no ADDITIONAL record (#8177) 2018-08-22 17:49:22 +02:00
UnixResolverDnsServerAddressStreamProviderTest.java Fixed illegal reflective access by not relying on a sun.net.dns class. (#8318) (#8319) 2018-09-26 20:55:46 +02:00