Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Queries the IP for domain.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DNSLookup 6.0 Yes Yes Yes Yes Yes
MBS( "DNSLookup.LookupHostByName"; DomainName { ; Type } )   More


Parameter Description Example value
DomainName The domain name to lookup. ""
Type Optional
What IP type to find.
Can be 4 for IPv4 or 6 for IPv6.
Default is IPv4.
This is currently ignored on Windows and you get back default IP type.


Returns reference number or error.


Queries the IP for domain.
Lookup is synchronous.
By default queries the primary IP type the machine is configured for.


Lookup domain name:

Set Variable [$q; Value:MBS( "DNSLookup.LookupHostByName"; DNS Lookup::Name to lookup; Get(ScriptParameter))]
If [MBS("IsError") = 0]
    Set Field [DNS Lookup::Name; MBS( "DNSLookup.Name"; $q )]
    Set Field [DNS Lookup::Addresses; MBS( "DNSLookup.Address"; $q; -1 )]
    Set Field [DNS Lookup::Aliases; MBS( "DNSLookup.Alias"; $q; -1 )]
    Set Variable [$r; Value:MBS( "DNSLookup.Release"; $q)]
End If

See also

Example Databases

Blog Entries

Created 25th November 2015, last changed 25th November 2015

DNSLookup.LookupHostByAddress   -   DNSLookup.Name

Feedback: Report problem or ask question.

MBS Xojo Plugins