Archive: How to translate server name to its IP?


How to translate server name to its IP?
How can I translate a server name like mail.yahoo.com into it's IP like 216.109.127.60?


I guess the ip is not static...else you can ping it and use the ip instead of the dns name.


dns is entered by user into my installer and it is needed to transform it to ip programmatically in the installer.


Hmm sincerely I don't understand the need for a conversion since every socket function can resolve dns names without problems, but that's not my business. I guess maybe NSISdl or inetload could provide a function like that, or you could write a plugin yourself shouldn't be that much of work.


http://forums.winamp.com/showthread....=gethostbyname


Thanks, Takhir, this helps!