If your dns server is setup correctly. You should be able to use
nslookup FQDN
FQDN= fully qualified domain name.
Find your fqdn with
echo %COMPUTERNAME%.%USERDNSDOMAIN%
example from work:
C:\Documents and Settings\CParman>echo %COMPUTERNAME%.%USERDNSDOMAIN%
CPARMAN-8DFCMF1.CORP
update:
%USERDNSDOMAIN% only works on a domain
So you can get it with the ipconfig /all output.
Code:
C:\Documents and Settings\CParman>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : cparman-8dfcmf1
Primary Dns Suffix . . . . . . . : CORP