Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert IP to Hostname

Status
Not open for further replies.
Joined
Jan 12, 2004
Messages
15
Location
US
I am looking for an Excel function/VB that
will take an IP and return a hostname and vice/versa.

Example
A1 216.45.19.33
B1 =nslookup(A1) would be in Cell B1

A1 B1 =nslookup(A1) 216.45.19.33
 
Why don't you simply write a batch file with that content instead? I don't think it's possible to shell a batch file within an excel UDF, anyway.

// Patrik
______________________________

To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the IT Professional, the glass is twice as big as it needs to be.
 
I didn't mean to imply I wanted to run the program
'nslookup'. I was just using that name as the name of a
possible function as an example ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top