Convert? I don't think that's possible to get the hostname of an ip address using asp. You can get the hostname using this code "Request.ServerVariables("REMOTE_HOST")" but not all web servers support reverse dsn lookup. So it will just return the ip address instead.
Beware: this is NOT a my code. It works, it's free, but isn't my (c). I've only create from original code a function. If I remeber right I've found it at ASPResource.
Function NSlookup(strHost) 'Create Shell Object Set oShell = Server.CreateObject("Wscript.Shell") 'Run NSLookup via Command Prompt 'Dump Results into a temp text file oShell.Run "%ComSpec% /c nslookup " & strHost & "> " & server.mappath("\RWFolder\" & strHost & ".txt"), 0, True 'Open the temp Text File and Read out the Data Set oFS = Server.CreateObject("Scripting.FileSystemObject") Set oTF = oFS.OpenTextFile(Server.MapPath("\RWFolder\" & strHost & ".txt")) tempData = Null Data = Null i = 0 Do While Not oTF.AtEndOfStream Data = Trim(oTF.Readline) If instr(Data,"Name:")>0 Then ' Don't want to display local DNS Info. tempData = Replace(Data,"Name:","") End If i = (i + 1) Loop if isnull(tempData)=true or (trim(tempData) = "") then tempData = "Unknown host" end if 'Close it oTF.Close 'Delete It oFS.DeleteFile Server.MapPath("\RWFolder\" & strHost & ".txt") Set oFS = Nothing nsLookup = trim(tempData) End Function %>