ltm rule command DNS class
iRule(1) BIG-IP TMSH Manual iRule(1)
DNS::class
Gets or sets the resource record class field.
SYNOPSIS
DNS::class RR_OBJECT (DNS_CLASS)?
DESCRIPTION
This iRules command gets or sets the resource record class field
Note: This command requires the DNS Profile, which is only enabled as part of GTM or the DNS Services add-on.
Syntax
DNS::class [value]
* Gets or sets the resource record class field (e.g. IN, CH, HS)
RETURN VALUE
VALID DURING
DNS_REQUEST, DNS_RESPONSE, GLOBAL_GTM
EXAMPLES
# Set the class of all response records to IN (internet)
when DNS_RESPONSE {
set rrs [DNS::answer]
foreach rr $rrs {
DNS::class $rr IN
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.1.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)