ltm rule command DNS rdataΒΆ

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



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

SYNOPSIS
       DNS::rdata RR_OBJECT (VALUE)?

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

       Note: This command requires the DNS Profile, which is only enabled as
       part of GTM or the DNS Services add-on.

       Syntax

       DNS::rdata  [value]

	    * Gets or sets the resource record rdata field

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE, GLOBAL_GTM

EXAMPLES
	List for all different type of REsponse, the drat types returned:

	    when DNS_RESPONSE {
		 set rrs [DNS::answer]
		 foreach rr $rrs {
		     log local0. "[DNS::rdata $rr]"
		 }
	    }

	If the VS is sending back an MX answer, for example, you will receive
	the following:
	   : 10 mx1.free.fr
	This is specially showing that the rdata is not a simple IP or text.
	For some records like the MX, NAPTR, and few others, it can be more
	complex.

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



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