Optional
decodeOptional
dnssecRequest DNSSec records. Currently
requires json: false
.
Optional
dnssecDisable DNSSEC
Optional
idThe 2-byte unsigned integer for the request. For DOH, should be 0 or undefined.
Optional
nameName to look up.
Optional
rrtypeThe Resource Record type to retrive.
Optional
streamEncode for streaming, with the packet prefixed by a 2-byte big-endian integer of the number of bytes in the packet.
Decode the response, either into JSON or an object representing the DNS format result.