Skip to main content

Query/Response Examples

  1. 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 name

    The 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 :
  2. 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 address

    The likely response is the same as for the HNAME request:

    HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP :
  3. ALL Query - Deliver the entire internet host table in a machine-readable form. For example:

    ALL <CRLF>   ;where <CRLF> is a carriage return/linefeed

    The 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: