Resolve Domain Name to IP Address

Posted on 2006-05-17
Last Modified: 2010-08-05
I was wondering is it possible in Visual Basic 6 to enter 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
    LVL 44

    Accepted Solution

    Hello 2hype,

    you could look at the API calls used here
    title:gethostbyname: Resolve Host Name to IP Address

    hope this helps a bit
    LVL 13

    Author Comment

    Thats exactly what  i wanted.

    LVL 44

    Expert Comment

    glad i could help, thanks for the grade :)

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now