DNS::ttl¶
Description¶
This iRules command gets or sets the resource record ttl field
Note: This command requires the DNS Profile, which is only enabled
as part of GTM or the DNS Services add-on.
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
}