DNSLookup.Alias
---------------

Queries the alias.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DNSLookup](component_DNSLookup.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DNSLookup.Alias"; LookupRef { ; Index } ) 

**MBS**( **"DNSLookup.Alias";** /\* Queries the alias. \*/  
**$LookupRef**; /\* The reference number for the DNS Lookup.e.g. $Lookup \*/   
**$Index**) /\* Optional; The index of the alias.   
From 0 to [DNSLookup.AliasCount](DNSLookupAliasCount.md)-1.  
Index of -1 gives list with all values.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| LookupRef | The reference number for the DNS Lookup. | $Lookup |  |
| Index | The index of the alias.    From 0 to [DNSLookup.AliasCount](DNSLookupAliasCount.md)-1.   Index of -1 gives list with all values. | 0 | Optional |

### Result

Returns text or error.

### Description

Queries the alias.  
### Examples

Query first alias for apple.com:

 Let ( \[  
 d = MBS ("[DNSLookup.LookupHostByName](DNSLookupLookupHostByName.md)"; "www.apple.com"; 6);  
 r = MBS ("DNSLookup.Alias"; d; 0);  
 e = MBS ("[DNSLookup.Release](DNSLookupRelease.md)"; d)  
\]; r )  
<small>  
Example result: www.apple.com</small>### See also

- [DNSLookup.AliasCount](DNSLookupAliasCount.md)
- [DNSLookup.List](DNSLookupList.md)
- [DNSLookup.LookupHostByAddress](DNSLookupLookupHostByAddress.md)
- [DNSLookup.LookupHostByName](DNSLookupLookupHostByName.md)
- [DNSLookup.Release](DNSLookupRelease.md)

### Example Databases

- [Network/DNS Lookup](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Network/DNS%20Lookup.shtml#1ScriptAnchor_)

### Blog Entries

- [DNS Lookups in FileMaker](https://www.mbsplugins.de/archive/2015-12-12/DNS_Lookups_in_FileMaker/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th November 2015 , last changed 28th August 2025

  
[DNSLookup.AddressCount](DNSLookupAddressCount.md) - [DNSLookup.AliasCount](DNSLookupAliasCount.md)

[HTML Version](DNSLookupAlias.shtml)