Platforms to show: All Mac Windows Linux Cross-Platform

DNSUtilMBS.ClassNumber(dnsClass as string, byref n as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: One of the DNS class constants.
Example:
dim n as Integer

if DNSUtilMBS.ClassNumber("CH", n) then
MsgBox str(n) // shows 3
end if
Notes: Returns true on success.

Feedback, Comments & Corrections

DNSUtilMBS.ClassString(dnsclass as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: Returns the string name of this class value.
Example:
MsgBox DNSUtilMBS.ClassString(DNSUtilMBS.ClassCHAOS) // shows "CH"

Feedback, Comments & Corrections

DNSUtilMBS.Lookup(name as string, dnsclass as Integer, dnsType as Integer) as DNSReplyMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: 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
Notes: Use the Class* constants for the dnsclass parameter. And use the Type* constants for the dnsType parameter.

Feedback, Comments & Corrections

DNSUtilMBS.LookupMT(name as string, dnsclass as Integer, dnsType as Integer) as DNSReplyMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 10.5 Yes No No Yes, macOS only No
Function: Performs a DNS query.
Notes:
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.

Feedback, Comments & Corrections

DNSUtilMBS.TypeNumber(dnsType as string, byref n as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: One of the DNS type constants.
Example:
dim n as Integer

if DNSUtilMBS.TypeNumber("AAAA", n) then
MsgBox str(n) // shows 28
end if
Notes: Returns true on success.

Feedback, Comments & Corrections

DNSUtilMBS.TypeString(dnstype as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method DNS MBS MacOSX Plugin 9.7 Yes No No Yes, macOS only No
Function: Returns the string name of this type value.
Example:
MsgBox DNSUtilMBS.TypeString(DNSUtilMBS.TypeMD) // shows "MD"

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Plugins