Forum Discussion
ak13_248542
Nimbostratus
Nov 21, 2017Block all dns record and allow only A record irule
Hi,
I'm trying to configure i-rule to accept only A record query and reject all other dns queries in GTM, but below irule gives me an error.
Please suggest any thing if i'm missing here. ...
JG
Cumulonimbus
Nov 21, 2017when DNS_REQUEST {
switch [string toupper [DNS::question type]] {
"A" {
return
}
default {
reject
}
}
}
Not much different from yours, but I'd use "switch" to make it easier for future modification, and "reject" to stop the client from resending packets.
And does your DNS server actually support multiple queries in one packet?
[Edit] Added missing closing brace.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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