Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DNSLookup.LookupHostByAddress

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 )

Parameters

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

Result

Returns reference number or error.

Description

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

Examples

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


DNSLookup.AliasCount   -   DNSLookup.LookupHostByName

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins