Sample code for 30+ languages & platforms
Xojo Plugin

DNS Lookup

Do a DNS lookup to resolve a hostname to an IP address.

Chilkat Xojo Plugin Downloads

Xojo Plugin
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Dim socket As New Chilkat.Socket

Dim maxWaitMs As Int32
maxWaitMs = 10000
Dim ipAddr As String
ipAddr = socket.DnsLookup("www.chilkatsoft.com",maxWaitMs)
If (socket.LastMethodSuccess <> True) Then
    System.DebugLog(socket.LastErrorText)
    Return
End If

System.DebugLog("IP Address: " + ipAddr)