[ Table Of Contents | Keyword Index ]

ns_addrbyhost(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_addrbyhost - Forward lookup a hostname to its IP address

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_addrbyhost hostname

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