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.

Syntax

DNS::ttl <rr_obj> [value]

DNS::ttl <rr_obj> [value]

  • Gets or sets the resource record ttl field

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
}