Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum length of a domain name without the http://www. & .com parts

Tags:

url

max

dns

What is the maximum length of the 'name' part in a domain? I'm referring to the google in http://www.google.com. How long can the google part be without what's before and after it?

like image 940
Norman Avatar asked Jan 18 '13 15:01

Norman


People also ask

What is the maximum length of domain name?

Format of a domain name Each element of a domain name separated by [.] is called a “label.” The maximum length of each label is 63 characters, and a full domain name can have a maximum of 253 characters.

How long should a web domain be?

We recommend keeping your domain name under 15 characters. Longer domains are harder for your users to remember. Not to mention, users will also be more prone to entering typos with longer domain names which can lead to loss traffic. That's why it's a good idea to keep your domain length short.

What is the maximum length of a subdomain?

A subdomain is a domain that is part of a larger domain. Each label may contain from 1 to 63 octets. The full domain name may not exceed a total length of 253 ASCII characters in its textual representation.

What is the minimum length of a domain name?

Minimum length of a domain name is 1 character, not including extensions.


2 Answers

Each label may contain up to 63 characters.

like image 130
Prakash Avatar answered Oct 04 '22 12:10

Prakash


"URI producers should use names that conform to the DNS syntax, even when use of DNS is not immediately apparent, and should limit these names to no more than 255 characters in length."

https://www.rfc-editor.org/rfc/rfc3986

"The DNS itself places only one restriction on the particular labels that can be used to identify resource records. That one restriction relates to the length of the label and the full name. The length of any one label is limited to between 1 and 63 octets. A full domain name is limited to 255 octets (including the separators)."

https://www.rfc-editor.org/rfc/rfc2181

like image 38
Weetu Avatar answered Oct 04 '22 10:10

Weetu