Resolve Domain Name to IP Address

Posted on 2006-05-17
Medium Priority
Last Modified: 2010-08-05
I was wondering is it possible in Visual Basic 6 to enter www.google.ca and have it reslove the IP Address.

Exampe:  User enters website he wants to reslove to an IP Address.  Clicks ok and it shows him the IP Address?

I saw this was possible in VB .net but I am using VB 6.

Any Help is appreciated.
Question by:2hype
  • 2
LVL 44

Accepted Solution

bruintje earned 2000 total points
ID: 16702009
Hello 2hype,

you could look at the API calls used here
title:gethostbyname: Resolve Host Name to IP Address
source: http://vbnet.mvps.org/index.html?code/network/iplookup.htm

hope this helps a bit
LVL 13

Author Comment

ID: 16702110
Thats exactly what  i wanted.

LVL 44

Expert Comment

ID: 16702142
glad i could help, thanks for the grade :)

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question