dns.name.is_valid

dns.name

is_valid(name) -> valid

Validate a domain name per RFC1035 constraints

Validates that each label is 1-63 bytes, total wire length ≤ 253, characters are [%w%-_], and no label starts or ends with a hyphen. Underscores are allowed for SRV records, DKIM, DMARC, etc.