Query/Response Examples
-
HNAME Query - Given a name, find the entry or entries that match the name. For example:
HNAME SRI-NIC <CRLF> ;where <CRLF> is a carriage return/linefeed, and 'SRI-NIC' is a host nameThe likely response is:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP :A response may stretch across more than one line. Continuation lines always begin with at least one space. For example:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP : -
HADDR Query - Given an internet address (as specified in RFC 796) find the entry or entries that match that address. For example:
HADDR 10.0.0.73 <CRLF> ;where <CRLF> is a carriage return/linefeed, and '10.0.0.73' is a host addressThe likely response is the same as for the HNAME request:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP : -
ALL Query - Deliver the entire internet host table in a machine-readable form. For example:
ALL <CRLF> ;where <CRLF> is a carriage return/linefeedThe likely response is the keyword 'BEGIN' followed by a colon ':', followed by the entire internet host table in the format specified in RFC 810, followed by 'END:'. For example:
BEGIN:
NET : 10.0.0.0 : ARPANET :
NET : 18.0.0.0 : LCSNET :
GATEWAY : 10.0.0.77, 18.8.0.4 : MIT-GW :: MOS : IP/GW :
HOST : 10.0.0.73 : SRI-NIC,NIC : TENEX : FOONLY-F3
NCP/TELNET, NCP/FTP, TCP :
HOST : 10.2.0.11 : SU-TIP, FELT-TIP ::
END: