Capability for an effect F[_]
which can do DNS lookups.
An instance is available for any effect which has a Sync
instance on JVM and Async
on Node.js.
- Companion
- object
Value members
Abstract methods
Gets an IP address representing the loopback interface.
Gets an IP address representing the loopback interface.
Resolves the supplied hostname to an ip address using the platform DNS resolver.
Resolves the supplied hostname to an ip address using the platform DNS resolver.
If the hostname cannot be resolved, the effect fails with an UnknownHostException
.
Resolves the supplied hostname to all ip addresses known to the platform DNS resolver.
Resolves the supplied hostname to all ip addresses known to the platform DNS resolver.
If the hostname cannot be resolved, an empty list is returned.
Resolves the supplied hostname to an ip address using the platform DNS resolver.
Resolves the supplied hostname to an ip address using the platform DNS resolver.
If the hostname cannot be resolved, a None
is returned.
Reverses the supplied address to a hostname using the platform DNS resolver.
Reverses the supplied address to a hostname using the platform DNS resolver.
If the address cannot be reversed, the effect fails with an UnknownHostException
.
Reverses the supplied address to all hostnames known to the platform DNS resolver.
Reverses the supplied address to all hostnames known to the platform DNS resolver.
If the address cannot be reversed, an empty list is returned.