Network name or network address
name = resolvehost('host')
[name,address] = resolvehost('host')
out = resolvehost('host','returntype
')
| The network name or network address of host. |
| Return either the name or address of host |
| Network name of host |
| Network address of host |
name = resolvehost('host')
returns the
name of the specified host. You can specify host
as either a
network name or a network address. For example,
www.yourdomain.com
is a network name and
144.212.100.10
is a network address.
[name,address] = resolvehost('host')
returns the name and address of the specified host.
out = resolvehost('host','
returns the host name if returntype
')returntype
is
name
and returns the host address if
returntype
is address
.
The following commands show how you can return the host name and address.
[name,address] = resolvehost('144.212.100.10') name = resolvehost('144.212.100.10','name') address = resolvehost('www.yourdomain.com','address')