[ Table Of Contents | Keyword Index ]

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

NAME

ns_hostbyaddr - Reverse lookup an IP address to its hostname

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_hostbyaddr address

DESCRIPTION

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

COMMANDS

ns_hostbyaddr address


address IP Address to be resolved into hostname

EXAMPLES

 
 % ns_hostbyaddr 127.0.0.1
 localhost

 
 % ns_hostbyaddr 0.0.0.0
 could not lookup 0.0.0.0
     while executing
 "ns_hostbyaddr 0.0.0.0"

SEE ALSO

nsd

KEYWORDS

ns_addrbyhost