Class Resolver

All Implemented Interfaces:
Runnable

public class Resolver extends ClientAnwendung
Ausschnitt aus dem RFC 1035:
Question section format
The question section is used to carry the "question" in most queries, i.e., the parameters that define what is being asked. The section contains QDCOUNT (usually 1) entries, each of the following format: ...
  1. QNAME a domain name represented as a sequence of labels, where each label consists of a length octet followed by that number of octets. The domain name terminates with the zero length octet for the null label of the root. Note that this field may be an odd number of octets; no padding is used.
  2. QTYPE a two octet code which specifies the type of the query. The values for this field include all codes valid for a TYPE field, together with some more general codes which can match more than one type of RR.
  3. QCLASS a two octet code that specifies the class of the query. For example, the QCLASS field is IN for the Internet.
Resource record format
The answer, authority, and additional sections all share the same format: a variable number of resource records, where the number of records is specified in the corresponding count field in the header. Each resource record has the following format: ...
  1. NAME a domain name to which this resource record pertains.
  2. TYPE two octets containing one of the RR type codes. This field specifies the meaning of the data in the RDATA field.
  3. CLASS two octets which specify the class of the data in the RDATA field.
  4. TTL a 32 bit unsigned integer that specifies the time interval (in seconds) that the resource record may be cached before it should be discarded. Zero values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached.
  5. RDLENGTH an unsigned 16 bit integer that specifies the length in octets of the RDATA field.
  6. RDATA a variable length string of octets that describes the resource. The format of this information varies according to the TYPE and CLASS of the resource record. For example, the if the TYPE is A and the CLASS is IN, the RDATA field is a 4 octet ARPA Internet address.