When we are talking about computers, I see both hostname and host name being used. Which is more proper? Should I put the space in there?
5 Answers
Where two words can be shown either separately or joined, as in host name and hostname, the two may exist side by side until one eventually becomes more popular. We have already seen the emergence of login as a single word, and the same may well happen here. The two citations in the Oxford English Dictionary, both from 1997, show host name. There are five records in the Corpus of Contemporary American English for host name, but only one for hostname.
Which you use yourself depends on any preference your organization may have and on the expectations of your readers. If in doubt, it’s probably wiser to take the conservative approach for the moment, and write host name.
-
5The problem with this term in context of "computers" is that it is used as "hostname" in lot of programming related tasks and otherwise, and as "host name" for host of other purposes.– MohitCommented Jan 21, 2013 at 9:59
-
-
2I sure can but what I meant to say is that it is used both ways in general manner of sense and as "hostname" in programming.– MohitCommented Jan 21, 2013 at 10:08
-
1Yes, the 'follow the prevailing practice / recommended style guide' approach does tend to let one down when one is giving a quote, or mixing two styles or addressing two fields adopting different practices, in the same piece of writing. 'The American Ballet Theatre is one of my favorite theaters,' says leading US Theatre Critic. It's not my favourite theatre, though. ... There was a programme about computer programs on the BBC last night. Commented Jan 21, 2013 at 14:46
In most technical settings, hostname is used — I would stick to that if you are writing for a technologically savvy audience, as host name can mean "the name of the host" which is not necessarily always synonymous.
To clarify somewhat on another answer posted here; 'login' may now be recognized as one word, but that doesn't mean that it's not also two words. (login [n], log in [v]).
Similarly, 'hostname' is unquestionably a single word in the tech kingdom; just because a dictionary (does/did) not recognize that word does not mean it is wrong.
Epigram'd: You're unlikely to see grep
in a dictionary, but that is unquestionably the proper spelling of that tech word.
-
+1 For clarifying the "login" point. "log in" is a Phrasal Verb. It's the same with "signout" and "sign out".– ShibumiCommented Jul 18, 2019 at 17:22
In the context of computer, hostname is the one I've always used and the one I've mostly read for the last years. Google agreed with more than 44 millions results for hostname and less than 10 millions for host name.
In your research on usage, be careful that results from the era before computer networking became common, the only valid use of "host name" was about social functions.
Hostname specifically refers to a particular computer or setting on a computer or setting in name server records. Host name is used when talking about the subject but not referring directly to a specific setting of it.
If I was writing a guide for someone to set up a name for their computer, I'd refer to it as a host name. The host name of a server you connect to (to view a web page) is a variable called hostname.
RFC814 (http://www.rfc-editor.org/rfc/rfc814.txt) uses "host name"
More recent RFC's use "hostname"
-
2Can you cite a more recent RFC that does this? I am unable to find a more recent RFC that uses "hostname" in the same way that "host name" is used in RFC814. For example, they may refer to a "Hostname Server" but they do not refer to a "hostname".– TrottCommented Dec 15, 2019 at 1:00
-
rfc-editor.org/rfc/rfc1123 ("Requirements for Internet Hosts -- Application and Support") has one cite for "hostname", but only in the context of the name of a reference doc. The other 20 mentions are as two words. I think "hostName" (sic) although common usage, is largely down to the IT industry liking to variable-name-ify terms. Doesn't mean it's not accepted usage though. Commented Sep 21, 2022 at 8:10