dns_names (dns_erlang v4.2.0)

View Source

Helpers to convert between DNS codes and their names.

Summary

Functions

Returns the name of a DNS algorithm as a binary string.

Returns the name of the class as a binary string.

Returns the name of an extended option as a binary string.

Returns the name of an extended rcode as a binary string.

Returns the name of an LLQ error code as a binary string.

Returns the name of an LLQ opcode as a binary string.

Returns the DNS algorithm from a binary string.

Returns the class type from a binary string.

Returns the extended option from a binary string.

Returns the extended rcode from a binary string.

Returns the LLQ error code from a binary string.

Returns LLQ opcode from a binary string.

Returns the opcode from a binary string.

Returns the name of an rcode as a binary string.

Returns the TSIG error from a binary string.

Converts from the string representation into the standard dns:type/0 representation

Returns the name of an opcode as a binary string.

Returns the name of an rcode as a binary string.

Returns the name of a TSIG error as a binary string.

Returns the name of the type as a binary string.

Functions

alg_name(Int)

-spec alg_name(dns:alg()) -> unicode:latin1_binary() | undefined.

Returns the name of a DNS algorithm as a binary string.

class_name(Int)

-spec class_name(dns:class()) -> unicode:latin1_binary() | undefined.

Returns the name of the class as a binary string.

eoptcode_name(Int)

-spec eoptcode_name(dns:eoptcode()) -> unicode:latin1_binary() | undefined.

Returns the name of an extended option as a binary string.

ercode_name(Int)

-spec ercode_name(dns:ercode()) -> unicode:latin1_binary() | undefined.

Returns the name of an extended rcode as a binary string.

llqerrcode_name(Int)

-spec llqerrcode_name(dns:llqerrcode()) -> unicode:latin1_binary() | undefined.

Returns the name of an LLQ error code as a binary string.

llqopcode_name(Int)

-spec llqopcode_name(dns:llqopcode()) -> unicode:latin1_binary() | undefined.

Returns the name of an LLQ opcode as a binary string.

name_alg(Bin)

-spec name_alg(unicode:latin1_binary()) -> dns:alg() | undefined.

Returns the DNS algorithm from a binary string.

name_class(Bin)

-spec name_class(unicode:latin1_binary()) -> dns:class() | undefined.

Returns the class type from a binary string.

name_eoptcode(Bin)

-spec name_eoptcode(unicode:latin1_binary()) -> dns:eoptcode() | undefined.

Returns the extended option from a binary string.

name_ercode(Bin)

-spec name_ercode(unicode:latin1_binary()) -> dns:ercode() | undefined.

Returns the extended rcode from a binary string.

name_llqerrcode(Bin)

-spec name_llqerrcode(unicode:latin1_binary()) -> dns:llqerrcode() | undefined.

Returns the LLQ error code from a binary string.

name_llqopcode(Bin)

-spec name_llqopcode(unicode:latin1_binary()) -> dns:llqopcode() | undefined.

Returns LLQ opcode from a binary string.

name_opcode(Bin)

-spec name_opcode(unicode:latin1_binary()) -> dns:opcode() | undefined.

Returns the opcode from a binary string.

name_rcode(Bin)

-spec name_rcode(unicode:latin1_binary()) -> dns:rcode() | undefined.

Returns the name of an rcode as a binary string.

name_tsigerr(Bin)

-spec name_tsigerr(unicode:latin1_binary()) -> dns:tsig_error() | undefined.

Returns the TSIG error from a binary string.

name_type(Bin)

-spec name_type(unicode:latin1_binary()) -> dns:type() | undefined.

Converts from the string representation into the standard dns:type/0 representation

opcode_name(Int)

-spec opcode_name(dns:opcode()) -> unicode:latin1_binary() | undefined.

Returns the name of an opcode as a binary string.

rcode_name(Int)

-spec rcode_name(dns:rcode()) -> unicode:latin1_binary() | undefined.

Returns the name of an rcode as a binary string.

tsigerr_name(Int)

-spec tsigerr_name(dns:tsig_error()) -> unicode:latin1_binary() | undefined.

Returns the name of a TSIG error as a binary string.

type_name(Int)

-spec type_name(dns:type()) -> unicode:latin1_binary() | undefined.

Returns the name of the type as a binary string.