LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get ip number from network name ?

 
What is the simplest simplest way to get the ip number for a network name, e.g. ip number for www.google.com ?
 
Regards,
Petri
0 Kudos
Message 1 of 5
(3,998 Views)
The simplest interactive way of doing this is by means of nslookup utility. If you want to integrate this in a program, either you redirect command output to a file and scan it or get a specific utility (which I cannot point you to since I don't know any... Smiley Sad )


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,991 Views)
It has also come to my mind that Ping command also translates URLs to corresponding IP addresses. It is also an interactive command, though maybe with an easier-to-decode output...


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 5
(3,986 Views)
 
OK. I was ready go for Windows SDK. Is there any command suitable for that task ?
I tried to find a function in my online help (dated 19 Aug 1999) included in FDS v8.0.1 without any success. Is that online help really the latest one ?
/Petri
 
0 Kudos
Message 4 of 5
(3,963 Views)
Well, you will need to dig into Windows socket APIs to retrieve some informations about servers. You could probably find gethostbyname function useful for your needs: it is included in your version of SDK which seems to be the last one distributed with CVI. I seem to remember that the last revisions of Windows SDK (the ones covering XP and more) are not included in CVI distribution but they should be accessible on Microsoft MSDN site


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,960 Views)