Forum Discussion
Craig_13881
Jul 25, 2011Nimbostratus
Return DNS replies to specific clients
I'm trying to return DNS replies to only a couple of different subnets. If the request comes in from anything else, I'd like to ignore it, or return a bogus response. Trying to get this to work, but...
Craig_13881
Jul 26, 2011Nimbostratus
Got it! Had to change the "or" to an "and". I was never all that great with double negatives. 🙂
when DNS_REQUEST {
if { !([IP::addr [IP::client_addr]/24 equals 10.0.0.0]) and !([IP::addr [IP::client_addr]/24 equals 172.16.1.0]) } {
cname www.blahblahblah.com
}
}
Thanks for you help. This seems to be working perfectly!
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