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 View fully qualified domain name using cmd prompt](https://eu-images.contentstack.com/v3/assets/blt07f68461ccd75245/blt37273eacc3e589de/661cf8b467b4a566c9890cbe/domain-13451161280_0_5.jpg?width=1280&auto=webp&quality=95&format=jpg&disable=upscale)
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