Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am confused about domain names (I think)

I call these things, i.e. names you can buy, 'domain names'

I call these things, i.e. extensions of names 'host names'

Is this naming scheme correct? Are there official definitions of these?

In particular, what are each of the texts between the dots called (i.e. the name for "www", "bbc", "edu", "example")?

share|improve this question

All of those entries are domain names per RFC 1034 and RFC 1035. If they also had the (typically implicit) trailing dot that represents the root they would be fully qualified domain names.

The individual components of a domain name are called labels. These cannot exceed 63 characters in length. A label can include any octet from \000 to \377.

If a domain name has an A (or AAAA) record associated with it (or a CNAME that ultimately resolves to an A / AAAA record) then it is also a hostname. Your three real examples (, etc) all qualify.

Special rules apply to hostnames. In particular, every label in a hostname must adhere to the RFC 1123 requirements, i.e. they can only use letter, digit, or hyphens, and hyphens cannot be the first or last character.

Please note that the leftmost label is not a DNS hostname in its own right, although it could be a local (non-DNS) hostname.

share|improve this answer
Wait. Aren't all of these are host names? Because for example when I write (that is, some gibberish), I am getting the dns_unresolved_hostname error. So that makes it look like all of these are actually hostnames. Could you clarify this one? – Utku Nov 5 '15 at 7:13

The right-most object is the Top Level Domain. Everything to the left of a TLD is a subdomain. If there is an address associated with the very left-most object it is considered a hostname.

share|improve this answer
And the thing as a whole, including the left-most part, is still a domain name. – mattdm Jan 13 '11 at 17:04
The left most part is commonly a record name that lies within the domain portion after it. Omitting the record name will bring up the default record, of the record type requested. – Chris S Jan 13 '11 at 21:24
@Chris - huh? DNS has no concept of a "default record". If you omit a leading label from a domain name that just means you're asking the same question but of that domain's parent domain. – Alnitak Jan 13 '11 at 22:07
@lain What does "if there is an address associated with the very left-most object" mean? Isn't an address always associated with these? – Utku Nov 5 '15 at 7:49
@Utku mx and CNAME RRs spring to mind. – Iain Nov 5 '15 at 9:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.