Esempi di interrogazioni e risposte
-
Interrogazione HNAME - Dato un nome, trovare la voce o le voci corrispondenti al nome. Ad esempio:
HNAME SRI-NIC <CRLF> ;where <CRLF> is a carriage return/linefeed, and 'SRI-NIC' is a host nameLa risposta probabile è:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP :Una risposta può estendersi su più di una riga. Le righe di continuazione iniziano sempre con almeno uno spazio. Ad esempio:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP : -
Interrogazione HADDR - Dato un indirizzo internet (come specificato nella RFC 796), trovare la voce o le voci corrispondenti a quell'indirizzo. Ad esempio:
HADDR 10.0.0.73 <CRLF> ;where <CRLF> is a carriage return/linefeed, and '10.0.0.73' is a host addressLa risposta probabile è la stessa della richiesta HNAME:
HOST : 10.0.0.73 : SRI-NIC,NIC : FOONLY-F3 : TENEX : NCP : -
Interrogazione ALL - Fornire l'intera tabella degli host internet in forma leggibile da macchina. Ad esempio:
ALL <CRLF> ;where <CRLF> is a carriage return/linefeedLa risposta probabile è la parola chiave 'BEGIN' seguita da due punti ':', poi dall'intera tabella degli host internet nel formato specificato nella RFC 810, quindi da 'END:'. Ad esempio:
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: