This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


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, is a network name and 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.


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

[name,address] = resolvehost('')
name = resolvehost('','name')
address = resolvehost('','address')

See Also


Introduced before R2006a

Was this topic helpful?