[net-dns-users] Bug report: Net::DNS::Zonefile fails to read escaped parenthesis

Olaf Kolkman olaf at NLnetLabs.nl
Wed Jun 19 14:01:00 UTC 2013


On Jun 18, 2013, at 7:08 PM, Chris Buxton <clists at buxtonfamily.us> wrote:

> Hostnames are (supposed to be) restricted to letters, numbers, and hyphens. Domain names in general are fully 8 bit, other than the special character * and the terminal \000

First... yes this is a bug. 8Bit clean is what the DNS is.

Second.. nit: there is no terminal \000 in the DNS wireformat. A domain name consists out of length octets followed by octets. With the final (root) octet being 0 length.

0x 02 00 00 05 00 00 00 00 00 00 (2 octets of zeros, followed by 5 octets of zeros, followed by zero length) is a perfectly valid domain name as far as the specs are concerned.



--Olaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/net-dns-users/attachments/20130619/6dfde869/attachment.htm>


More information about the net-dns-users mailing list