display full qualified name in the cmd

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
 
M

Michael Johnston [MSFT]

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.
 
D

Dean Wells [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top