Platforms to show: All Mac Windows Linux Cross-Platform

Back to DNSUtilMBS module.

DNSUtilMBS.ClassNumber(dnsClass as string, byref n as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the DNS class constants.
Example
dim n as Integer

if DNSUtilMBS.ClassNumber("CH", n) then
MsgBox str(n) // shows 3
end if

Returns true on success.

DNSUtilMBS.ClassString(dnsclass as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the string name of this class value.
Example
MsgBox DNSUtilMBS.ClassString(DNSUtilMBS.ClassCHAOS) // shows "CH"

DNSUtilMBS.Lookup(name as string, dnsclass as Integer, dnsType as Integer) as DNSReplyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Performs a DNS query.
Example
// lookup MX record for email sending
dim r as DNSReplyMBS = DNSUtilMBS.Lookup("macsw.de", DNSUtilMBS.ClassINTERNET, DNSUtilMBS.TypeMX)
if r <> nil then
MsgBox "macsw.de -> "+r.Answer(0).MX.name
end if

Use the Class* constants for the dnsclass parameter. And use the Type* constants for the dnsType parameter.

DNSUtilMBS.LookupMT(name as string, dnsclass as Integer, dnsType as Integer) as DNSReplyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 10.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Performs a DNS query.

Use the Class* constants for the dnsclass parameter. And use the Type* constants for the dnsType parameter.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.

DNSUtilMBS.TypeNumber(dnsType as string, byref n as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the DNS type constants.
Example
dim n as Integer

if DNSUtilMBS.TypeNumber("AAAA", n) then
MsgBox str(n) // shows 28
end if

Returns true on success.

DNSUtilMBS.TypeString(dnstype as Integer) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DNS MBS MacOSX Plugin 9.7 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the string name of this type value.
Example
MsgBox DNSUtilMBS.TypeString(DNSUtilMBS.TypeMD) // shows "MD"

The items on this page are in the following plugins: MBS MacOSX Plugin.


The biggest plugin in space...