Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Names and maximum lengths of the parts of a URL

Tags:

url

subdomain

In this URL:

http://www.subdomain.domainname.abc.xyz.com.us/directory/filename.extension
  1. What is the name of each part?
  2. What is maximum length of each part? e.g. subdomain, domain name, top-level domain…
like image 228
hamid Avatar asked May 11 '12 13:05

hamid


People also ask

What is the maximum length of an URL?

Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters. Internet Explorer also has a maximum path length of 2,048 characters.

What is maximum URL segments?

The default value is 4294967295 . Optional uint attribute. Specifies the maximum number of segments permitted in a URL. The default value is 32 .

What is the maximum length of a URL in Chrome?

Chrome limits URLs to a maximum length of 2MB for practical reasons and to avoid causing denial-of-service problems in inter-process communication. On most platforms, Chrome's omnibox limits URL display to 32kB ( kMaxURLDisplayChars ) although a 1kB limit is used on VR platforms.

How do you find the length of a URL?

Google Chrome allows the maximum length of the URL to be of the size 2MB (2,097,152 characters). In Firefox the length of the URL can be unlimited but practically after 65,536 characters the location bar no longer displays the URL.


1 Answers

The Wikipedia entry for Subdomain answers both questions:

  1. What is the name of each part?

A subdomain is a domain that is part of a larger domain; the only domain that is not also a subdomain is the root domain. For example, west.example.com and east.example.com are subdomains of the example.com domain, which in turn is a subdomain of the com top-level domain (TLD). A "subdomain" expresses relative dependence, not absolute dependence: for example, wikipedia.org comprises a subdomain of the org domain, and en.wikipedia.org comprises a subdomain of the domain wikipedia.org.

  1. What is maximum length of each part? e.g. subdomain, domain name, top-level domain…

In theory this subdivision can go down to 127 levels deep, and each DNS label can contain up to 63 characters, as long as the whole domain name does not exceed a total length of 255 characters. But in practice most domain registries limit at 253 characters.

like image 99
commonpike Avatar answered Sep 20 '22 13:09

commonpike