HOSTENT

Section: User Commands (1)
Updated: 31 July 1992
Index Return to Main Contents
 

NAME

hostent - Displays the hostent structure for a given hostname  

SYNOPSIS

hostent {hostname | address}

 

DESCRIPTION

hostent displays the hostent system structure for the given hostname or dotted quad IP number. It uses the system call gethostbyname(3) or gethostbyaddr(3) to fill the hostent structure. Hostent was written to be used as a tool to help debug name resolving issues. The interface that hostent uses is exactly the same interface that utilities such as telnet and ftp use to resolve IP numbers and names. It is especially useful if your system uses multi-tier resolving (NIS, /etc/hosts, BIND). resolving  

EXAMPLES

example% hostent ucbvax.berkeley.edu
Cannonical (Official) hostname = ucbvax.berkeley.edu

List of aliases: <NONE EXIST>


List of IP addresses:

address# 0  = 128.32.133.1
address# 1  = 128.32.130.12
address# 2  = 128.32.149.36

displays the contents of the hostent structure for ucbvax.berkeley.edu on the standard output.

example% hostent 128.32.133.1
Cannonical (Official) hostname = ucbvax.Berkeley.EDU

List of aliases: <NONE EXIST>


List of IP addresses:

address# 0  = 128.32.133.1
address# 1  = 128.32.130.12
address# 2  = 128.32.149.36

does the same in reverse.  

SEE ALSO

gethostent(3)  

AUTHOR

Phil Blanchfield C.R.C.


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 21:20:06 GMT, September 16, 2024