object DnsProtocol
Supersedes akka.io.Dns protocol.
Note that one MUST configure akka.io.dns.resolver = async
to make use of this protocol and resolver.
Allows for more detailed lookups, by specifying which records should be checked, and responses can more information than plain IP addresses (e.g. ports for SRV records).
- Source
- DnsProtocol.scala
Linear Supertypes
Content Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- DnsProtocol
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- final case class Ip(ipv4: Boolean = true, ipv6: Boolean = true) extends RequestType with Product with Serializable
- sealed trait RequestType extends AnyRef
- final case class Resolve(name: String, requestType: RequestType) extends Product with Serializable
-
final
case class
Resolved(name: String, records: Seq[ResourceRecord], additionalRecords: Seq[ResourceRecord]) extends NoSerializationVerificationNeeded with Product with Serializable
- name
of the record
- records
resource records for the query
- additionalRecords
records that relate to the query but are not strictly answers
Value Members
-
def
ipRequestType(): RequestType
Java API
-
def
ipRequestType(ipv4: Boolean, ipv6: Boolean): RequestType
Java API
-
def
resolve(name: String, requestType: RequestType): Resolve
Java API
-
def
resolve(name: String): Resolve
Java API
-
def
srvRequestType(): RequestType
Java API
- object Resolve extends Serializable
- object Resolved extends Serializable
- object Srv extends RequestType with Product with Serializable