xarxa

Crates

git

Versions

default

Flavors

Skip to main content

DNS_MAX_NAME_SIZE

Constant DNS_MAX_NAME_SIZE 

Source
pub const DNS_MAX_NAME_SIZE: usize = raw::DNS_MAX_NAME_SIZE; // 255usize
Expand description

Longest DNS name that can be queried, in wire format, in bytes.

The wire format is one length byte per label plus the label itself, so a name takes one byte more than its dotted form. 255 is the most the DNS protocol allows.

This is a limit with and without alloc. Default: 255.