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.

B4X:
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

  • DNSLookup.zip
    7.5 KB · Views: 446

billzhan

Active Member
Licensed User
Longtime User
getMXRecords and getARecords method work fine.

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

wl

Well-Known Member
Licensed User
Longtime User
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 !
 
Top