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.


The biggest plugin in space...