Share via


Can I use fully numeric hostname?

Question

Monday, August 7, 2017 3:59 AM

Hi All.

I want to use fully numeric hostname in windows infra.

So,

I searched the RFC 953 and 952.  It says that " The first character must be an alpha character." in RFC 953 and 952.

But in RFC 1123, I think that the restriction is removed with below mention.

"One aspect of host name syntax is hereby changed: the restriction on the first character is relaxed to allow either a letter or a digit.  Host software must support this more liberal syntax."

So, I tried to some test and change the name of windows 7 pc as "123" , returned below message.

Anyway, I continued to try test.

First, I added host record 123 in Windows DNS Server.

and then nslookup 123, it can resolve the name.

 

but i tried to ping 123, it cannot pint to the host.

I think that the cause of this situation is that the netbios name does not allow fully newmeric hostname.

I had too red the below article, so i understand that the fully numeric hostnsame does not support in windows.

https://support.microsoft.com/en-us/help/909264/naming-conventions-in-active-directory-for-computers-domains-sites-and

at that article, there is a sentence that "In Windows 2000 and in later versions of Windows, computers that are members of an Active Directory domain cannot have names that are composed completely of numbers. This restriction is because of DNS restrictions."

What is "DNS restrictions"? How Can I get the information of that "DNS restrictions"?

It looks like that some other OS can support numeric hostname, but why windows does not support?

What is the difference?

Thanks in advance.

All replies (3)

Monday, August 14, 2017 8:23 AM ✅Answered

Hi,

Was your issue resolved? 

If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.

Best Regards,
Frank

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, August 7, 2017 5:08 AM

Hi,

>>but i tried to ping 123, it cannot pint to the host.

 When ping receives an all-numeric argument, it interprets it as an IP address.

>>What is "DNS restrictions"? How Can I get the information of that "DNS restrictions"?

According to RFC 1123, the only characters that can be used in DNS labels are "A" to "Z", "a" to "z", "0" to "9"

More information about Name Restrictions for Hosts and Domains, please refer to the following article:

https://technet.microsoft.com/en-us/library/cc959336.aspx

>>It looks like that some other OS can support numeric hostname

As I know, linux and Bind (Berkeley Internet Name Daemon commonly used DNS server software on the Internet )

doesn't support  fully numeric hostname.

Best Regards,

Frank

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, August 11, 2017 9:38 AM

Hi,
Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.

Best Regards,

Frank

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact [email protected].