View fully qualified domain name using cmd prompt

View the fully qualified domain name of a machine from the command line.

John Savill

February 23, 2017

1 Min Read
View fully qualified domain name using cmd prompt

Q. How can I view the fully qualified domain name of my machine from a cmd prompt?

A. There are numerous methods and would love to see suggestions in the comments but an easy way I have found is the following:

C:>echo %COMPUTERNAME%.%USERDNSDOMAIN%
JOHNPC.SAVILLTECH.NET

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like