命令/响应键
当前已定义的命令关键字列于下方。注意:由于服务器及其可用功能会随时间演进,应使用 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.
请记住,服务器只接受单独一行命令,并且在关闭连接之前只返回一次响应。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
随着新需求的出现,还会增加更多关键字。下文对允许的请求/响应作更详细的说明。