ltm rule command DNS disable
iRule(1) BIG-IP TMSH Manual iRule(1)
DNS::disable
Sets the service state to disabled for the current DNS packet.
SYNOPSIS
DNS::disable (DNS_COMPONENT)+
DESCRIPTION
This iRules command sets the service state to disabled for the current
DNS packet.
Note: This command requires the DNS Profile, which is only enabled as
part of GTM or the DNS Services add-on license.
Syntax
DNS::disable
* Sets the service state to disabled for the current DNS packet
(reset to default for future packets)
+ all - all services listed below
+ dns-express/dnsx - DNS Express
+ dnssec - DNS security extensions
+ gtm/gslb - Global Traffic Manager
+ bind - BIG-IP BIND
+ cache - DNS caching
+ rpz - DNS Cache Response Policy Zone enforcement
RETURN VALUE
VALID DURING
DNS_REQUEST, DNS_RESPONSE, GLOBAL_GTM
EXAMPLES
# Only use dns express to resolve requests from a specific ip,
# disable dns express for all other requests
when DNS_REQUEST {
DNS::disable dnsx
if { [IP::client_addr] equals "192.168.1.245" } {
DNS::enable dnsx
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.0.0 --First introduced the command. @BIGIP-11.2.0 --Added
subcommand: cache @BIGIP-11.6.0 --Added subcommand: rpz
BIG-IP 2017-01-31 iRule(1)