Dns

com.comcast.ip4s.Dns
See theDns companion object
sealed trait Dns[F[_]]

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.

Attributes

Companion
object
Source
Dns.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Dns[F]

Members list

Value members

Abstract methods

Implicitly added by forKleisli

Gets an IP address representing the loopback interface.

Gets an IP address representing the loopback interface.

Attributes

Source
Dns.scala

Gets an IP address representing the loopback interface.

Gets an IP address representing the loopback interface.

Attributes

Source
Dns.scala
def resolve(hostname: Hostname): F[IpAddress]
Implicitly added by forKleisli

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.

Attributes

Source
Dns.scala
def resolve(hostname: Hostname): F[IpAddress]

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.

Attributes

Source
Dns.scala
def resolveAll(hostname: Hostname): F[List[IpAddress]]
Implicitly added by forKleisli

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.

Attributes

Source
Dns.scala
def resolveAll(hostname: Hostname): F[List[IpAddress]]

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.

Attributes

Source
Dns.scala
def resolveOption(hostname: Hostname): F[Option[IpAddress]]
Implicitly added by forKleisli

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.

Attributes

Source
Dns.scala
def resolveOption(hostname: Hostname): F[Option[IpAddress]]

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.

Attributes

Source
Dns.scala
def reverse(address: IpAddress): F[Hostname]
Implicitly added by forKleisli

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.

Attributes

Source
Dns.scala
def reverse(address: IpAddress): F[Hostname]

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.

Attributes

Source
Dns.scala
def reverseAll(address: IpAddress): F[List[Hostname]]
Implicitly added by forKleisli

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.

Attributes

Source
Dns.scala
def reverseAll(address: IpAddress): F[List[Hostname]]

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.

Attributes

Source
Dns.scala
def reverseOption(address: IpAddress): F[Option[Hostname]]
Implicitly added by forKleisli

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, a None is returned.

Attributes

Source
Dns.scala
def reverseOption(address: IpAddress): F[Option[Hostname]]

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, a None is returned.

Attributes

Source
Dns.scala

Concrete methods

final def mapK[G[_]](fk: FunctionK[F, G]): Dns[G]
Implicitly added by forKleisli

Translates effect type from F to G using the supplied FunctionK

Translates effect type from F to G using the supplied FunctionK

Attributes

Source
Dns.scala
final def mapK[G[_]](fk: FunctionK[F, G]): Dns[G]

Translates effect type from F to G using the supplied FunctionK

Translates effect type from F to G using the supplied FunctionK

Attributes

Source
Dns.scala