question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnixResolverDnsServerAddressStreamProvider : unresolved DNS server address

See original GitHub issue

Getting 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
shivabhallacommented, Oct 21, 2019

Thanks @normanmaurer 😊

Read more comments on GitHub >

github_iconTop Results From Across the Web

UnixResolverDnsServerAddress...
Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains.
Read more >
Best Java code snippets using io.netty.resolver.dns ... - Tabnine
A DnsServerAddressStreamProvider which will use predefined default DNS servers to use for DNS resolution. These defaults do not respect your host's machines ...
Read more >
cannot use an unresolved DNS server address: [ - 简书
NOSQL类型简介键值对:会使用到一个哈希表,表中有一个特定的键和一个指针指向特定的数据,如redis,volde...
Read more >
UnixResolverDnsServerAddress...
Parse a file of the format /etc/resolv.conf which may contain the default DNS server to use, and also overrides for individual domains.
Read more >
Unresolved DNS name - Server Fault
Our DNS server seems intact and also other DNS servers in internet can successfully resolve s2.bankklient.cz A record to IP address.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found