dns_names (dns_erlang v4.1.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 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()) -> binary() | undefined.

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

class_name(Int)

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

Returns the name of the class as a binary string.

eoptcode_name(Int)

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

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

ercode_name(Int)

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

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

llqerrcode_name(Int)

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

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

llqopcode_name(Int)

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

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

opcode_name(Int)

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

Returns the name of an opcode as a binary string.

rcode_name(Int)

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

Returns the name of an rcode as a binary string.

tsigerr_name(Int)

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

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

type_name(Int)

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

Returns the name of the type as a binary string.