DNSMSG::header

Description

DNSMSG::header takes an opaque dns_message returned from RESOLVER::name_lookup and the name of a field to extract from the header section. It will return that field from the header section.

Syntax

DNSMSG::header <dns_message> (rcode|opcode|id|ra|rd|tc|qr|aa|ad|cd)

Examples

when CLIENT_ACCEPTED {
        set result [RESOLVER::name_lookup "/Common/r1" www.abc.com a]
        set rcode [DNSMSG::header $result rcode]
}