ltm rule command DNS nameΒΆ

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



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

SYNOPSIS
       DNS::name RR_OBJECT (VALUE)?

DESCRIPTION
       This iRules command gets or sets the resource record name field.

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

       Syntax

       DNS::name  [value]

	    * Gets or sets the resource record name field (FQDN, e.g.
	      devcentral.f5.com)

RETURN VALUE
VALID DURING
       DNS_REQUEST, DNS_RESPONSE, GLOBAL_GTM

EXAMPLES
	# log all dns responses returned to a specific client ip
	when DNS_RESPONSE {
	    if { [IP::client_addr] equals "192.168.1.245" } {
		DNS::log [DNS::name [DNS::answer]]
	    }
	}

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



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