Forum Discussion
Deepti_Nayak_26
Nimbostratus
Jun 06, 2017Irule for reverse DNS lookup
Hello ,
Currently we have applied Irule for DNS lookup & allowing DNS entries that only ends with a a particular fqdn
for e.g
when DNS_REQUEST {
set fqdn [DNS::question name]
...
Ilian_Ivanov
Nimbostratus
Jun 06, 2017My best guess is:
when DNS_REQUEST {
set fqdn [DNS::question name]
if { !($fqdn ends_with "xxx.org.in")} {
log localo. "----[DNS::question name] Dropped-----"
drop
}
}
when DNS_RESPONSE {
set answer [DNS::rrname]
if { !($answer ends_with "xxx.org.in")} {
log localo. "----[DNS::rrname] Dropped-----"
drop
}
}
You can also try with [DNS::answer] instead of [DNS::rrname].
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
