Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic  


Queries the domain name for an IP.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DNSLookup 6.0 Yes Yes Yes Yes Yes
MBS( "DNSLookup.LookupHostByAddress"; IP )   More


Parameter Description Example
IP The IP address to query. ""


Returns reference number or error.


Queries the domain name for an IP.
Lookup is synchronous.


Lookup an IP:

Set Variable [$q; Value:MBS( "DNSLookup.LookupHostByAddress"; DNS Lookup::IP to lookup )]
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

Release notes

Created 25th November 2015, last changed 1st January 2016

DNSLookup.AliasCount   -   DNSLookup.LookupHostByName

Feedback: Report problem or ask question.

MBS FileMaker Plugins