B4J Library jDNSLookup

Hi,

The attached jDNSLookup-library does MX and A record (DNS) lookups.
It's my first library so please feel free to share any feedback with me.

Code:
Dim dns As jDNSLookup
Dim lcv As Int

Dim records() As String = dns.getMXRecords("gmail.com")
For lcv = 0 To records.Length - 1
  Log (records(lcv))
Next
 

Attachments

getMXRecords and getARecords method work fine.

I think dns.main() should not be shown.
 
getMXRecords and getARecords method work fine.

I think dns.main() should not be shown.

Hi Billzhan,

You are entirely correct. I used it for testing in Eclipse and removed it.

Thanks !
 
Back
Top