View fully qualified domain name using cmd prompt

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

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish