dns.wire.reader:name

dns.wire

reader:name() -> fqdn, err

Read a DNS compressed name, returning the fully qualified domain name

Reads a DNS name from the wire, handling compression pointers per RFC1035 ยง4.1.4. Returns the name with a trailing dot (e.g. "example.com."). The root name (single zero byte) returns ".".

Security constraints enforced:

For sub_readers: pointer chasing reads from the full parent message buffer, allowing resolution of pointers outside the sub_reader's bounds.