Maximum subdomain depth

domain-name-systemsubdomain

Is there a maximum allowed subdomain depth supported by webservers or browsers?

For example, could a domain like foo.bar.baz.monkey.pirate.google.com cause problems?

Best Answer

I believe the DNS itself can have up to 127 levels of label, each label can be up to 63 characters and the maximum length of the whole record is limited to 253 characters as you have to encode the length and a terminating 0.

Related Topic