Forum Discussion
jrmorris_151361
Dec 23, 2014Nimbostratus
DNS:rrtype undefined procedure
I am trying to create the following iRule to help rate limit DNS queries for amplification protection as noted in a few articles. But I get an undefined error. I've confirmed DNS:rrtype is a good var...
JRahm
Dec 26, 2014Admin
The $rr is undefined in this case. That's more appropriate with an answer with several resource records (and requires a foreach loop as shown in the example code on the rdata wiki page to get the rr variable defined). I think you want something like this instead:
when DNS_REQUEST {
if { [DNS::question type] eq "TXT" } {
rateclass dns_rate_shape
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects