According to RFC 1738: Uniform Resource Locators (URL): 3.1. Common Internet Scheme Syntax, must the host component contain a dot, e.g., "example.com"? I.e., may it be composed of only one domain label?
According to RFC 1738: Uniform Resource Locators (URL): 3.1. Common Internet Scheme Syntax ,
Share
No, the host doesn’t have to contain a dot. I.e., yes, only one domain label is fine. Look at
domain,subdomainandlabel( https://www.rfc-editor.org/rfc/rfc1034#section-3.5 ):This document is referenced from https://www.rfc-editor.org/rfc/rfc1738#section-3.1 to describe the host naming rules.