Wikipedia states that underscores are used by both Android and Microsoft Windows Systems in hostnames. My question is, what are these host names used for? Do you know list of these strange hostnames? Have you ever even seen one of these?
-
wow -1 without a reason why? Is this not a reasonable question? – Rook Jun 09 '12 at 19:43
-
3I didn't downvote, but I would've if I weren't out of votes. The way you phrased the question it sounds like you think there are some specific, well-known hostnames with underscores that all Windows systems use. – Ward - Reinstate Monica Jun 09 '12 at 20:42
-
@Ward well they might be used for some strange windows/android voodoo... – Rook Jun 10 '12 at 00:21
-
@Ward: yes, that's what the Wikipedia article implied, and it could have been true. I don't think it was unreasonable to ask. – Harry Johnston Jun 10 '12 at 22:36
-
I've rephrased the paragraph in question on Wikipedia. Hopefully it is clearer now. – Harry Johnston Jun 10 '12 at 22:43
-
I have removed my downvote, with the re-edit. – Aug 12 '12 at 23:17
3 Answers
Per RFC952, hostnames are:
A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit components of "domain style names".
Microsoft in the usual "Embrace, Extend and Extinguish™" method they use, have these for certain functions within their DNS system they use for domains and extended it to include allowing hostnames to resolve, probably because NETBIOS names allowed underscores and it was easier just to slap it lower case onto the front of the domain to come up with a machine hostname. It sometimes makes zone transfers a real pain as the entries are not RFC compliant.
I would assume that Google, being the 900 lb Gorilla, has done the same thing for similar reasons. Which means that access points that follow the RFC will decline connections among other misery that it causes..
![](../../users/profiles/79590.webp)
- 563
- 4
- 10
-
DNS records with underscores shouldn't cause any problems with domain transfers as they have always been legal DNS entries. The original DNS RFCs recommended *but did not require* that DNS labels follow the rules for names ala RFC952. In other words, a telnet client might legitimately refuse to connect to a host whose name had an underscore, but if it doesn't do so, the DNS should be able to handle the name perfectly well. – Harry Johnston Jun 09 '12 at 23:01
-
You might want to qualify answers like this. _Insofar as your Non-Windows DNS supports DNS A and CNAME entries with underscores..._ This is one of those "Been There Done That" answers where I've personally run into the problem. – Fiasco Labs Jun 10 '12 at 03:07
-
Sorry; I overspoke. There's nothing improper about DNS server software refusing to accept A or CNAME records with underscores, so you might indeed run into trouble with zone transfers in this situation. But there's nothing improper about DNS server software accepting these records either. My point is that this isn't a proprietary or non-standard extension to DNS as your second paragraph claims, it's just a differing implementation. – Harry Johnston Jun 10 '12 at 22:27
-
I'm not sure under what circumstances you'd run into trouble with access points, could you expand on this? – Harry Johnston Jun 10 '12 at 22:27
-
Mentioned on code.google.com as an issue among certain Android using vendors whose devices have problems accessing Wireless hotspots because they chose to put an underscore in the device name. Other mentions were problems getting the underscored name to register with dynamic DNS on college networks. – Fiasco Labs Jun 10 '12 at 22:35
Erik Fair has answered this extensively over at Quora:
The keyboard of the Teletype (TTY) ASR-33 (a very common terminal interface of the period from whence this standard hails) doesn't have underscore on it: http://www.pdp8.net/asr33/pics/k... which gives one a nasty problem: how do you type (input) a hostname if the hostname in question contains a character that your terminal interface can't generate?
In the article a few more links are mentioned.
![](../../users/profiles/25640.webp)
- 6,867
- 3
- 29
- 58
Microsoft Windows does not prohibit the underscore in the name of a computer. Some system administrators, either not knowing or not caring about RFC952, use underscores in the name of a computer that is connected to the internet, and either put this name in the DNS explicitly or allow it to be published via dynamic DNS.
There's nothing particularly strange about these names. Examples might be JOHNS_COMPUTER or ACCOUNTING_DEPT_PC1.
![](../../users/profiles/94065.webp)
- 5,875
- 4
- 35
- 52