UnixResolverDnsServerAddressStreamProvider : unresolved DNS server address
See original GitHub issueGetting Following exception when UnixResolverDnsServerAddressStreamProvider is trying to read from /etc/resolver.conf
java.lang.ExceptionInInitializerError: null at io.netty.resolver.dns.UnixResolverDnsServerAddressStreamProvider.parseSilently(UnixResolverDnsServerAddressStreamProvider.java:72) ~[AdExchange%23%23redisson-upgrade_9557.jar:?] at io.netty.resolver.dns.DnsServerAddressStreamProviders.<clinit>(DnsServerAddressStreamProviders.java:28) ~[AdExchange%23%23redisson-upgrade_9557.jar:?] at org.redisson.connection.MasterSlaveConnectionManager.<init>(MasterSlaveConnectionManager.java:195) ~[AdExchange%23%23redisson-upgrade_9557.jar:?] at org.redisson.connection.MasterSlaveConnectionManager.<init>(MasterSlaveConnectionManager.java:169) ~[AdExchange%23%23redisson-upgrade_9557.jar:?]
Caused by: java.lang.IllegalArgumentException: cannot use an unresolved DNS server address: nil:53 at io.netty.resolver.dns.DnsServerAddresses.sanitize(DnsServerAddresses.java:204) ~[AdExchange%23%23redisson-upgrade_9557.jar:?] at io.netty.resolver.dns.DnsServerAddresses.sequential(DnsServerAddresses.java:77) ~[AdExchange%23%23redisson-upgrade_9557.jar:?] at io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider.<clinit>(DefaultDnsServerAddressStreamProvider.java:146) ~[AdExchange%23%23redisson-upgrade_9557.jar:?]
/etc/resolver.conf file contains following data ->
nameserver {A Valid IP}
nameserver {A Valid IP}
nameserver nil
Issue is resolved if we remove “nameserver nil” from file.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
@slandelle @shivabhalla PTAL https://github.com/netty/netty/pull/9697
Thanks @normanmaurer 😊