Returns the IP address corresponding to a domain name.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
the hostNameToAddress of domainName
# Params
- domainName : A standard fully-qualified <domain name>. - callback : The name of a message to send when the lookup completes.
# Examples
hostNameToAddress("mail.example.org")
put hostNameToAddress("www." & thisDomain) into line 3 of theHosts
hostNameToAddress("www.domain.com", myCallback)
# Description
Use the hostNameToAddress function to find the numeric IP address of the computer or computers at a given domain name.
If the callback parameter is specified then the call will return immediately and upon completion of the lookup, the callback will be invoked with the resolved address as a parameter.
# Tags
# See
- **keyword:** numeric - **command:** accept - **function:** result, DNSServers - **control structure:** function - **glossary:** DNS, domain name, IP address