dns_names (dns_erlang v4.2.0)
View SourceHelpers 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
-spec alg_name(dns:alg()) -> unicode:latin1_binary() | undefined.
Returns the name of a DNS algorithm as a binary string.
-spec class_name(dns:class()) -> unicode:latin1_binary() | undefined.
Returns the name of the class as a binary string.
-spec eoptcode_name(dns:eoptcode()) -> unicode:latin1_binary() | undefined.
Returns the name of an extended option as a binary string.
-spec ercode_name(dns:ercode()) -> unicode:latin1_binary() | undefined.
Returns the name of an extended rcode as a binary string.
-spec llqerrcode_name(dns:llqerrcode()) -> unicode:latin1_binary() | undefined.
Returns the name of an LLQ error code as a binary string.
-spec llqopcode_name(dns:llqopcode()) -> unicode:latin1_binary() | undefined.
Returns the name of an LLQ opcode as a binary string.
-spec name_alg(unicode:latin1_binary()) -> dns:alg() | undefined.
Returns the DNS algorithm from a binary string.
-spec name_class(unicode:latin1_binary()) -> dns:class() | undefined.
Returns the class type from a binary string.
-spec name_eoptcode(unicode:latin1_binary()) -> dns:eoptcode() | undefined.
Returns the extended option from a binary string.
-spec name_ercode(unicode:latin1_binary()) -> dns:ercode() | undefined.
Returns the extended rcode from a binary string.
-spec name_llqerrcode(unicode:latin1_binary()) -> dns:llqerrcode() | undefined.
Returns the LLQ error code from a binary string.
-spec name_llqopcode(unicode:latin1_binary()) -> dns:llqopcode() | undefined.
Returns LLQ opcode from a binary string.
-spec name_opcode(unicode:latin1_binary()) -> dns:opcode() | undefined.
Returns the opcode from a binary string.
-spec name_rcode(unicode:latin1_binary()) -> dns:rcode() | undefined.
Returns the name of an rcode as a binary string.
-spec name_tsigerr(unicode:latin1_binary()) -> dns:tsig_error() | undefined.
Returns the TSIG error from a binary string.
-spec name_type(unicode:latin1_binary()) -> dns:type() | undefined.
Converts from the string representation into the standard dns:type/0
representation
-spec opcode_name(dns:opcode()) -> unicode:latin1_binary() | undefined.
Returns the name of an opcode as a binary string.
-spec rcode_name(dns:rcode()) -> unicode:latin1_binary() | undefined.
Returns the name of an rcode as a binary string.
-spec tsigerr_name(dns:tsig_error()) -> unicode:latin1_binary() | undefined.
Returns the name of a TSIG error as a binary string.
-spec type_name(dns:type()) -> unicode:latin1_binary() | undefined.
Returns the name of the type as a binary string.