错误处理
ERR 应答 - 可能出现在任何查询中,任何使用该名称服务器的访问程序都应允许它。错误的形式如下:
ERR : <code> : <string> :
as in
ERR : NAMNFD : Name not found :
错误代码是唯一的描述符,对于任一给定错误,长度限制为 8 个字符。访问程序可以用它来识别错误,并在某些情况下自动处理。字符串是针对给定错误的附带消息,用于访问程序只需记录错误消息的情形。当前的代码及其对应的含义如下:
NAMNFD Name not found; name not in table
ADRNFD Address not found; address not in table
ILLCOM Illegal command; command key not recognized
TMPSYS Temporary system failure, try again later