DNSLookupMBS properties

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to DNSLookupMBS class.

DNSLookupMBS.Address as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The primary address of the host.
Example
dim d as DNSLookupMBS = DNSLookupMBS.LookupHostbyName("www.apple.com")

if d=nil then
MsgBox "No DNS Server available?"
else
MsgBox DNSLookupMBS.FormatIP(d.Address)
end if

On TCP/IP based system the address is 4 bytes long binary string.
(Read and Write property)

DNSLookupMBS.AddressesCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of addresses for this host.
Example
dim d as DNSLookupMBS = DNSLookupMBS.LookupHostbyName("www.apple.com")

if d=nil then
MsgBox "No DNS Server available?"
else
MsgBox str(d.AddressesCount)
end if

(Read and Write property)

Some examples using this property:

DNSLookupMBS.AddressType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The type of the address format.
Example
dim d as DNSLookupMBS = DNSLookupMBS.LookupHostbyName("www.apple.com")

if d=nil then
MsgBox "No DNS Server available?"
else
MsgBox str(d.AddressType) // shows 2 for IPv4
end if

2 for IPv2
10 for IPv10
(Read and Write property)

Some examples using this property:

DNSLookupMBS.AliasCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of aliases for this host.
Example
dim d as DNSLookupMBS = DNSLookupMBS.LookupHostbyName("www.apple.com")

if d=nil then
MsgBox "No DNS Server available?"
else
MsgBox str(d.AliasCount)
end if

(Read and Write property)

Some examples using this property:

DNSLookupMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Network MBS Network Plugin 3.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The name of the host.
Example
dim d as DNSLookupMBS = DNSLookupMBS.LookupHostbyName("www.apple.com")

if d=nil then
MsgBox "No DNS Server available?"
else
MsgBox d.Name
end if

(Read and Write property)

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


💬 Ask a question or report a problem