public final class MacOSDnsServerAddressStreamProvider extends Object implements DnsServerAddressStreamProvider
DnsServerAddressStreamProvider implementation which makes use of the same mechanism as
 Apple's open source mDNSResponder to retrieve the
 current nameserver configuration of the system.| Constructor and Description | 
|---|
| MacOSDnsServerAddressStreamProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | ensureAvailability() | 
| static boolean | isAvailable() | 
| DnsServerAddressStream | nameServerAddressStream(String hostname)Ask this provider for the name servers to query for  hostname. | 
| static Throwable | unavailabilityCause() | 
public static boolean isAvailable()
public static void ensureAvailability()
public static Throwable unavailabilityCause()
public DnsServerAddressStream nameServerAddressStream(String hostname)
DnsServerAddressStreamProviderhostname.nameServerAddressStream in interface DnsServerAddressStreamProviderhostname - The hostname for which to lookup the DNS server addressed to use.
                 If this is the final DnsServerAddressStreamProvider to be queried then generally empty
                 string or '.' correspond to the default DnsServerAddressStream.DnsServerAddressStream which should be used to resolve hostname.Copyright © 2008–2025 The Netty Project. All rights reserved.