Forum Discussion
james_hodgkinso
Nimbostratus
Aug 28, 2018DNS Caches and iRules
I've got a VIP handling DNS requests with a transparent cache profile on it, and I'm trying to stop queries certain zones by sending an NXDOMAIN automatically. Is it correct to assume that this'll so...
iaine
Nacreous
Aug 30, 2018Hi
Apart from a bracket issue on you if line - should be { rather than [
if { $dns_pool eq "pool_dns_NXDOMAIN" } {
which i'm guessing is a copy and paste issue as the code wouldn't work otherwise then your code works for me. When querying the VIP I can see requests for all of me DNS suffixes hitting the DNS servers but the call for the specific host in the Data Group gets served by the iRule.
Changing your code tocontains dg_dns_steering tidied this up for me.
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