BLOG | DOCUMENTATION | TRAC

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

pj_dns_hdr Struct Reference
[Low-level DNS Message Parsing and Packetization]

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

Nb. of res records

Nb. of additional records

Transaction ID.

Nb. of NS records.


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.