Skip to content
⌘ NSIS Forum Archive

How to translate server name to its IP?

6 posts

Yurik#

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?
ElvenProgrammer#
I guess the ip is not static...else you can ping it and use the ip instead of the dns name.
Yurik#
dns is entered by user into my installer and it is needed to transform it to ip programmatically in the installer.
ElvenProgrammer#
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.
Takhir#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.