ltm rule command DNS authorityΒΆ

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



DNS::authority
       Returns, inserts, removes, or clears RRs from the authority section.

SYNOPSIS
       DNS::authority ('clear' | (('insert' | 'remove') RR_OBJECT))?

DESCRIPTION
       This iRules command returns, inserts, removes, or clears RRs from the
       authority 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::authority [[insert|remove rr_obj] | clear]

	    * Returns, inserts, removes, or clears RRs from the authority
	      section. With no arguments, get tcl list of RR objs; with arg,
	      insert/remove RR tcl obj in the authority section or clear all RRs
	      from the authority section.

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE

EXAMPLES
	# Insert an authority record in all responses
	when DNS_RESPONSE {
	    DNS::authority insert [DNS::rr "devcentral.f5.com. 88 IN SOA 1.2.3.4"]
	}

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



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