R
res0jhe2
C:\appdev\dns>nslookup
Default Server: myserver.home.com
Address: 10.29.2.104
-snip-
I can feed a computername using for with the following syntax:
C:\appdev\dns>for /f "tokens=1" %a in (machine.dat) do @nslookup %a
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2082w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2202w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2379w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
Name: machine03269.home.com
Address: 10.29.16.107
-snip-
the text file machine.dat looks like:
fzrvew2082w
fzrvew2202w
fzrvew2379w
fzrvew03269w
-snip-
The type of output I want would be as follows:
macine03269w 10.29.16.107
anothermachine 10.x.x.x
nextmachine 10.x.x.x....
Could anyone help with the syntax to get this output?
Thx,
Default Server: myserver.home.com
Address: 10.29.2.104
-snip-
I can feed a computername using for with the following syntax:
C:\appdev\dns>for /f "tokens=1" %a in (machine.dat) do @nslookup %a
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2082w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2202w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
*** myserver.home.com can't find machine2379w: Non-existent domain
Server: myserver.home.com
Address: 10.29.2.104
Name: machine03269.home.com
Address: 10.29.16.107
-snip-
the text file machine.dat looks like:
fzrvew2082w
fzrvew2202w
fzrvew2379w
fzrvew03269w
-snip-
The type of output I want would be as follows:
macine03269w 10.29.16.107
anothermachine 10.x.x.x
nextmachine 10.x.x.x....
Could anyone help with the syntax to get this output?
Thx,