メインコンテンツまでスキップ

コマンドキーと応答キー

現在定義されているコマンドキーワードを以下に示す。注: サーバおよび利用可能な機能は時とともに進化するため、実装済みの機能、変更点、新しいコマンドの最新の概要を得るには HELP コマンドを使用すべきである。

Keyword   Response

HELP This information.

VERSION "VERSION: <string>" where <string> will be different for
each version of the host table.

HNAME <hostname>
One or more matching host table entries.

HADDR <hostaddr>
One or more matching host table entries.

ALL The entire host table.

ALL-OLD The entire host table without domain style names.

DOMAINS The entire top-level domain table (domains only).

ALL-DOM Both the entire domain table and the host table.

ALL-INGWAY
All known gateways in TENEX/TOPS-20 INTERNET.GATEWAYS
format.

サーバは 1 行のコマンドしか受け付けず、接続を閉じる前に 1 つの応答しか返さないことに留意されたい。HNAME と HADDR は、名前またはアドレスで特定のホストを検索するのに便利である。VERSION は、自動化されたプロセスが、表全体を転送することなく、ホスト表の「新しい」版が存在するかどうかを確認するために使用できる。ただし、返されるバージョン文字列は版ごとに一意であることだけが保証されており、現時点ではその形式について何も仮定してはならない。

応答キー:

ERR       entry not found, nature of error follows
NET entry found, rest of entry follows
GATEWAY entry found, rest of entry follows
HOST entry found, rest of entry follows
DOMAIN entry found, rest of entry follows
BEGIN followed by multiple entries
END done with BEGIN block of entries

新たな必要が認識されるに従って、キーワードは追加される。許可される要求/応答のより詳細な説明を以下に示す。