Query/Response Format
The name server accepts simple text query requests of the form
<command key> <argument(s)> [<options>]
where square brackets ("[]") indicate an optional field. The command key is a keyword indicating the nature of the request. The defined keys are explained below.
The response, on the other hand, is of the form
<response key> : <rest of response>
where <response key> is a keyword indicating the nature of the response, and the rest of the response is interpreted in the context of the key.
NOTE: Care should be taken to interpret the nature of the reply (e.g, single record or multiple record), so that no confusion about the state of the reply results. An "ALL" request will likely return several hundred or more records of all types, whereas "HNAME" or "HADDR" will usually return one HOST record.