[][src]Module rusty_dns::domain_name

DNS Domain Name operations.

Functions

is_domain_name_valid

Returns true if domain_name represents a valid DNS domain name.

normalize_domain_name

Will attempt to massage a given domain name into a valid one by removing leading '.' and append '.' to end

parse_domain_name

Parse a DNS domain name from a raw DNS packet, taking into account DNS message compression.

serialize_domain_name

Serialize domain_name into a DNS protocol conformant, network ready buffer, using message compression.