Board index » Visual Studio » Reverse nslookup from file

Reverse nslookup from file

Visual Studio337
I'm new to this, so I'm having a hard time with it. I need to have a VB

script read from a text file of IP addresses, and return their name (through

nslookup or other) and put it in another file. How do I do the iterations

and get nslookup in a VB script?



Any help would be appreciated.

Thank you,



KB


-
 

Re:Reverse nslookup from file

Also...I need it to only return the IP and the name it resolved to....not

the other stuff that comes with nslookup.





"Kelli B" <burkenkellik@johndeere.com>wrote in message

Quote
I'm new to this, so I'm having a hard time with it. I need to have a VB

script read from a text file of IP addresses, and return their name

(through

nslookup or other) and put it in another file. How do I do the iterations

and get nslookup in a VB script?



Any help would be appreciated.

Thank you,



KB









-

Re:Reverse nslookup from file

Kelli B wrote:



Quote
I'm new to this, so I'm having a hard time with it. I need to have a VB

script read from a text file of IP addresses, and return their name (through

nslookup or other) and put it in another file. How do I do the iterations

and get nslookup in a VB script?



Any help would be appreciated.

Hi



In the post in the link below there is a VBScript function NSlookup

that can obtain the computer name from an IP address.



http://groups.google.com/groups?selm" rel="nofollow" target="_blank">groups.google.com/groups=3FA0E438.7CCCD005%40hydro.com





--

torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway

Administration scripting examples and an ONLINE version of

the 1328 page Scripting Guide:

www.microsoft.com/technet/scriptcenter/default.mspx">www.microsoft.com/technet/scriptcenter/default.mspx

-

Re:Reverse nslookup from file

How would I modify that to read from a file, and output the results to a

file?



Thank you,



KB

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com>wrote in message

Quote
Kelli B wrote:



>I'm new to this, so I'm having a hard time with it. I need to have a VB

>script read from a text file of IP addresses, and return their name

(through

>nslookup or other) and put it in another file. How do I do the

iterations

>and get nslookup in a VB script?

>

>Any help would be appreciated.

Hi



In the post in the link below there is a VBScript function NSlookup

that can obtain the computer name from an IP address.



http://groups.google.com/groups?selm" rel="nofollow" target="_blank">groups.google.com/groups=3FA0E438.7CCCD005%40hydro.com





--

torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway

Administration scripting examples and an ONLINE version of

the 1328 page Scripting Guide:

www.microsoft.com/technet/scriptcenter/default.mspx">www.microsoft.com/technet/scriptcenter/default.mspx





-