dh
) object¶DNSHeader
¶This object holds a representation of a DNS packet’s header.
DNSHeader:getRD() -> bool
Get recursion desired flag.
DNSHeader:getCD() -> bool
Get checking disabled flag.
DNSHeader:getID() -> bool
Get header’s ID
DNSHeader:getTC() -> bool
Truncated message bit
DNSHeader:getRA() -> bool
Recursion available
DNSHeader:getAD() -> bool
Authenticated data from named
DNSHeader:getAA() -> bool
Authoritative answer
DNSHeader:getRCODE() -> int
Response code
DNSHeader:getOPCODE() -> int
Purpose of message
DNSHeader:getQDCOUNT() -> int
Number of question entries
DNSHeader:getANCOUNT() -> int
Number of answer entries
DNSHeader:getNSCOUNT() -> int
Number of authority entries
DNSHeader:getARCOUNT() -> int
Number of resource entries