Login | |
|
 |
RE: Get Hostname of my primary DNS without DOS-Boxes - 6/6/2008 7:31:53 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
do a run like this: oShell.Run "%comspec% /c nslookup ip.ip.ip.ip > c:\output.txt",0,true Then: read that file's contents into a variable sText = oFSO.OpenTextFile("c:\output.txt",1).ReadAll delete the file parse through the sText variable to find the hostname you want. The entire process - assuming the dns lookup goes fast - should take less than a second, even on a slow machine.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
|
|