okhttp-dnsoverhttps / okhttp3.dnsoverhttps / DnsRecordCodec

DnsRecordCodec

object DnsRecordCodec

Trivial Dns Encoder/Decoder, basically ripped from Netty full implementation.

Properties

TYPE_A

const val TYPE_A: Int

TYPE_AAAA

const val TYPE_AAAA: Int

Functions

decodeAnswers

fun decodeAnswers(hostname: String, byteString: ByteString): List<InetAddress>

encodeQuery

fun encodeQuery(host: String, type: Int): ByteString