ltm rule command DNS typeΒΆ

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



DNS::type
       Gets or sets the resource record type field.

SYNOPSIS
       DNS::type RR_OBJECT (DNS_TYPE)?

DESCRIPTION
       This iRules command gets or sets the resource record type field

       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::type  [value]

	    * Gets or sets the resource record type field (e.g. A, AAAA, MX,
	      NAPTR, etc)

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE

EXAMPLES
	Remove SOA records from section

	    when DNS_RESPONSE {
		set rrs [DNS::answer]
		foreach rr $rrs {
		    if { [DNS::type $rr] == "SOA" } {
			DNS::answer remove $rr
		    }
		}
	    }

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



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