DNS::additional¶
Description¶
This iRules command returns, inserts, removes, or clears RRs from the
additional section.
Note: This command functions only in the context of LTM iRules and
requires the DNS Profile, which is only enabled as part of GTM or the
DNS Services add-on.
Syntax¶
DNS::additional [[insert|remove rr_obj] | clear]
DNS::additional [[insert|remove rr_obj] | clear]¶
- Returns, inserts, removes, or clears RRs from the additional section. With no arguments, get tcl list of RR objs; with arg, insert/remove RR tcl obj in the additional section or clear all RRs from the additional section.
Examples¶
Change the ttl of all answer records and add a glue record
when DNS_RESPONSE {
set rrs [DNS::answer]
foreach rr $rrs {
DNS::ttl $rr 1234
}
set new_rr [DNS::rr "bigip3900-30.f5net.com. 88 IN A 1.2.3.4"]
DNS::additional insert $new_rr
}