NaviServer - programmable web server


[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_addrbyhost(n) 4.99.5 naviserver "NaviServer Built-in Commands"

Name

ns_addrbyhost - Forward lookup a hostname to its IP address

Table Of Contents

Synopsis

Description

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

COMMANDS

ns_addrbyhost hostname

hostname Name of the hostname to be resolved into IP address

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

nsd

Keywords

ns_hostbyaddr