/* *Typeofprotocolusedtoaccessaserver.
*/ enum dns_payload_protocol_type {
DNS_SERVER_PROTOCOL_UNSPECIFIED = 0,
DNS_SERVER_PROTOCOL_UDP = 1, /* Use UDP to talk to the server */
DNS_SERVER_PROTOCOL_TCP = 2, /* Use TCP to talk to the server */
};
/* *SourceofrecordincludedinDNSresolverpayload.
*/ enum dns_record_source {
DNS_RECORD_UNAVAILABLE = 0, /* No source available (empty record) */
DNS_RECORD_FROM_CONFIG = 1, /* From local configuration data */
DNS_RECORD_FROM_DNS_A = 2, /* From DNS A or AAAA record */
DNS_RECORD_FROM_DNS_AFSDB = 3, /* From DNS AFSDB record */
DNS_RECORD_FROM_DNS_SRV = 4, /* From DNS SRV record */
DNS_RECORD_FROM_NSS = 5, /* From NSS */
NR__dns_record_source
};
/* *StatusofrecordincludedinDNSresolverpayload.
*/ enum dns_lookup_status {
DNS_LOOKUP_NOT_DONE = 0, /* No lookup has been made */
DNS_LOOKUP_GOOD = 1, /* Good records obtained */
DNS_LOOKUP_GOOD_WITH_BAD = 2, /* Good records, some decoding errors */
DNS_LOOKUP_BAD = 3, /* Couldn't decode results */
DNS_LOOKUP_GOT_NOT_FOUND = 4, /* Got a "Not Found" result */
DNS_LOOKUP_GOT_LOCAL_FAILURE = 5, /* Local failure during lookup */
DNS_LOOKUP_GOT_TEMP_FAILURE = 6, /* Temporary failure during lookup */
DNS_LOOKUP_GOT_NS_FAILURE = 7, /* Name server failure */
NR__dns_lookup_status
};
/* *Headeratthebeginningofbinaryformatpayload.
*/ struct dns_payload_header {
__u8 zero; /* Zero byte: marks this as not being text */
__u8 content; /* enum dns_payload_content_type */
__u8 version; /* Encoding version */
} __packed;
/* *HeaderatthebeginningofaV1serverlist.Thisisfolloweddirectlyby *theserverrecords.Eachserverrecordsbeginswithastructoftype *dns_server_list_v1_server.
*/ struct dns_server_list_v1_header { struct dns_payload_header hdr;
__u8 source; /* enum dns_record_source */
__u8 status; /* enum dns_lookup_status */
__u8 nr_servers; /* Number of server records following this */
} __packed;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.