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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

DNSLookup.LookupHostByAddress

Queries the domain name for an IP.

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

Parameters

Parameter Description Example
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

Release notes

Example Databases

Blog Entries

This function checks for a license.

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


DNSLookup.List - DNSLookup.LookupHostByName

💬 Ask a question or report a problem