Home --> Documentations --> PJLIB-UTIL Reference

Data Fields

Data Fields

pj_uint16_t id
 
pj_uint16_t flags
 
pj_uint16_t qdcount
 
pj_uint16_t anscount
 
pj_uint16_t nscount
 
pj_uint16_t arcount
 

Detailed Description

Standard DNS header, according to RFC 1035, which will be present in both DNS query and DNS response.

Note that all values seen by application would be in host by order. The library would convert them to network byte order as necessary.

Field Documentation

pj_uint16_t pj_dns_hdr::anscount

Nb. of res records

pj_uint16_t pj_dns_hdr::arcount

Nb. of additional records

pj_uint16_t pj_dns_hdr::flags

Flags.

pj_uint16_t pj_dns_hdr::id

Transaction ID.

pj_uint16_t pj_dns_hdr::nscount

Nb. of NS records.

pj_uint16_t pj_dns_hdr::qdcount

Nb. of queries.


The documentation for this struct was generated from the following file:

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.