@LOOKUPHOST
— Returns an
address for a hostname.
Syntax:
%@LOOKUPHOST[
n,
hostname]
n | what to return: |
0 : try IPv4 first, then IPv6 | |
4 : IPv4 only | |
6 : IPv6 only | |
10 : try IPv6 first, then IPv4 | |
128 : return the canonical name (CNAME record) | |
hostname | the name to look up; required |
If n is not given, it defaults to 0 (try IPv4 first).