ltm rule command DNSMSG header
iRule(1) BIG-IP TMSH Manual iRule(1)
DNSMSG::header
Returns a field from the header of a dns_message.
SYNOPSIS
DNSMSG::header DNS_MESSAGE ('rcode' | 'opcode' | 'id' | 'ra' | 'rd' | 'tc' | 'qr' | 'aa' | 'ad' | 'cd')
DESCRIPTION
Takes a dns_message structure and field name, and returns the specified field value from the header.
Syntax
DNSMSG::header [ rcode | opcode | id | ra | rd | tc | qr | aa | ad | cd ]
RETURN VALUE
Returns a field from the header.
VALID DURING
ANY_EVENT
EXAMPLES
when CLIENT_ACCEPTED {
set result [RESOLVER::name_lookup "/Common/r1" www.abc.com a]
set rcode [DNSMSG::header $result rcode]
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-15.1.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)