ltm rule command DNS drop
iRule(1) BIG-IP TMSH Manual iRule(1)
DNS::drop
Drops the current DNS packet after the execution of the event.
SYNOPSIS
DNS::drop
DESCRIPTION
This iRules command drops the current DNS packet after the execution of
the event.
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::drop
* Drops the current DNS packet after the execution of the event.
RETURN VALUE
VALID DURING
DNS_REQUEST, DNS_RESPONSE
EXAMPLES
#Drop dns requests from a specific IP
when DNS_REQUEST {
if { [IP::client_addr] equals "192.168.1.245" } {
DNS::drop
}
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-11.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)