ltm rule command DNS lenΒΆ

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

DNS::len
       Returns the DNS packet message length.

SYNOPSIS
       DNS::len

DESCRIPTION
       This iRules command returns the DNS packet message length.

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

       Syntax

       DNS::len

	    * Returns the DNS packet message length

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE, GLOBAL_GTM

EXAMPLES
	# log the length of each packet
	when DNS_RESPONSE {
	    DNS::log "PacketLength: " [DNS::len]
	}

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

BIG-IP						      2020-06-23					     iRule(1)