returns the domain name of the local system.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
the hostName
# Examples
if the hostName is "localhost.example.org" then return empty
# Description
Use the hostName function to find the domain name of the computer that LiveCode is running on.
The hostName function does a reverse DNS lookup on the hostAddress in order to find the domain name. This means that the computer must be connected to the Internet in order to use this function. If a connection to the Internet is not available, the hostName function returns an error message.
# Tags
# See
- **command:** accept - **function:** hostAddress, DNSServers - **control structure:** function - **glossary:** domain name, error message, return, DNS