VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

IPHostResolver

Michael Tutty  (2 Submissions)   Windows API Call/Explanation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Allows you to look up a DNS entry by name (www.whatever.com => 100.100.0.1) or by IP (100.100.0.1 => www.whatever.com). Includes some code found right here on VBC!

Inputs
Either a host name or the IP address

Assumes
You should have a TCP stack installed before trying this (i.e., can you surf?), or it'll puke.

Returns
Either an IP address or a host name (are you seeing a pattern here?)

Side Effects
You may become dizzy or irritable if you use this class. Make sure to drink lots of water, and eat your vegetables.

API Declarations
Lots. See code

Rate IPHostResolver (23(23 Vote))

Download IPHostResolver

IPHostResolver Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters