Forum Discussion
bindummawat
Sep 28, 2023Altostratus
iRule giving error: rule [/common/ecs_rule] error: /common/ecs_rule:6: error: [undefined procedure:
Hi I am trying to run a setup with GTM. Here I have ECS enabled on client requesting DNS query. Behind F5 I have 2 DNS server configured. Now I can see the packet recived by F5 has client subnet i...
JRahm
Sep 28, 2023Admin
bindummawat is correct, the host command only works in GTM context, you need to use node command in LTM context. Untested, and not for production, but just playing around with how to distinguish between both contexts in a single iRule, something that might work in a lab environment (Seriously, LAB ONLY):
when DNS_REQUEST {
if { [catch { [DNS::is_wideip [DNS::question name]] }]} {
# DNS::is_wideip is an LTM-only command, and will trigger a Tcl error on GTM
# This is a GTM request, using host command
} else {
# This is an LTM request, using node command
}
}
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