- java.lang.Object
-
- io.netty5.resolver.dns.DnsServerAddressStreamProviders
-
public final class DnsServerAddressStreamProviders extends Object
Utility methods related toDnsServerAddressStreamProvider
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DnsServerAddressStreamProvider
platformDefault()
ADnsServerAddressStreamProvider
which inherits the DNS servers from your local host's configuration.static DnsServerAddressStreamProvider
unixDefault()
-
-
-
Method Detail
-
platformDefault
public static DnsServerAddressStreamProvider platformDefault()
ADnsServerAddressStreamProvider
which inherits the DNS servers from your local host's configuration.Note that only macOS and Linux are currently supported.
- Returns:
- A
DnsServerAddressStreamProvider
which inherits the DNS servers from your local host's configuration.
-
unixDefault
public static DnsServerAddressStreamProvider unixDefault()
-
-