Instrument Control Toolbox    
resolvehost

Return network name or network address

Syntax

Arguments

'host'
The network name or network address of host.
'returntype'
Return either the name or address of host
name
Network name of host
address
Network address of host

Description

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.mathworks.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','returntype') returns the host name if returntype is name and returns the host address if returntype is address.

Example

The following commands show how you can return the host name and address.

See Also

Functions

tcpip, udp


  record save