Ns addrbyhost

From AOLserver Wiki
Revision as of 22:58, 9 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 516)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_addrbyhost.html


NAME

ns_addrbyhost - Forward lookup a hostname to its IP address

SYNOPSIS

ns_addrbyhost hostname

DESCRIPTION

This command resolves a hostname to its IP address. If the hostname cannot be resolved, it throws an error.

EXAMPLES

 % ns_addrbyhost www.aol.com
 64.12.187.22
 % ns_addrbyhost bogus.domain
 could not lookup bogus.domain
     while executing
 "ns_addrbyhost bogus.domain"

SEE ALSO

ns_hostbyaddr

Category Documentation - Category Core Tcl API