DC_ DC_ - 14 days ago 8
PHP Question

How long can a TLD possibly be?

I'm working on an email validation regex in PHP and I need to know how long the TLD could possibly be and still be valid. I did a few searches but couldn't find much information on the topic. So how long can a TLD possibly be?

Answer

DNS allows for a maximum of 63 characters for an individual label.