display full qualified name in the cmd

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

When I type hostname from a cmd, I get my machine name.
I would like to display my full qualified hostname. I
tried adding dns suffix to my hostname but still did not
get the changes. I am using Windows 2000
 
If you simply want to see the DNS suffix simply run ipconfig /all and look at the Primary DNS Suffix section. If you need to get this info from within a script, the
scripting language you use may have an API call that will return this.

Thank you,
Mike Johnston
Microsoft Network Support

--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
 
Joe said:
When I type hostname from a cmd, I get my machine name.
I would like to display my full qualified hostname. I
tried adding dns suffix to my hostname but still did not
get the changes. I am using Windows 2000

net config workstation

.... or ...

net config workstation | find "Full"

Dean
 
Back
Top