ltm rule command DNS ttlΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



DNS::ttl
       Gets or sets the resource record TTL field.

SYNOPSIS
       DNS::ttl RR_OBJECT (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  [value]

	    * Gets or sets the resource record TTL field

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE

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
	    }

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.1.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)