Re: Domain name label length

Joel de Guzman <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 26/12/2017 11:38 AM, Michael Powell wrote:
> Hello,
> 
> So, a domain name label looks something like this, in general, right?
> 
> _label = _let >> *(_let | _dig | _hyp) >> (_let | _dig);
> 
> However, another stipulation is that its length must be <=63 according
> to the RFC:
> 
> https://tools.ietf.org/html/rfc1034#section-3.5
> 
> So... Is there a way to constrain that using Qi?

Yes, but if I were you, I'd probably avoid having too much smarts in
the parser and have those checks post-hoc.

Regards,
-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.