DNS::header

Description

This iRules command gets or sets simple bits or byte fields. Read-only form introduced in v11.0, Read-write capability added in v11.1.
Note: This command requires the DNS Profile, which is only enabled as part of GTM or the DNS Services add-on.

Syntax

DNS::header <id|qr|opcode|aa|tc|rd|ra|ad|cd|rcode|qdcount|ancount|nscount|arcount> [value]

DNS::header <id|qr|opcode|aa|tc|rd|ra|ad|cd|rcode|qdcount|ancount|nscount|arcount> [value]

  • Gets or sets simple bits or byte fields. Return value is always an integer except for successful recognition of the rcode or opcode fields, where a string is returned
    • rcode
      • NOERROR
      • FORMERR
      • SERVFAIL
      • NXDOMAIN
      • NOTIMPL
      • REFUSED
      • YXDOMAIN
      • YXRRSET
      • NXRRSET
      • NOTAUTH
      • NOTZONE
    • opcode
      • QUERY
      • IQUERY
      • STATUS
      • NOTIFY
      • UPDATE

Examples