How to ter FQDN given the IP Address

R

Rich

Hello,

Can anyone tell me or point me to a resource that explains how I can click a
command button, and get the fully qualified domain name of a server given
it's IP address? The IP Address is known and is displayed on the form. The
FQDN textbox on the form should then be set to the value returned.

TIA,
Rich
 
D

Douglas J. Steele

Check what Randy Birch has at
http://vbnet.mvps.org/code/network/hostnamefromip.htm

Obligatory warning: Randy's site is aimed at VB programmers. There are some
significant differences between the controls available for forms in VB and
in Access. Because of that, some (most?) of his samples won't port directly
to Access without some tweaking.

That having been said, in a quick scan of that code, the only change I could
see being needed for use in Access would be to change

Private Sub Command1_Click()

Text2.Text = GetHostNameFromIP(Text1.Text)

End Sub

to

Private Sub Command1_Click()

Me.Text2 = GetHostNameFromIP(Me.Text1)

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top