Forum Discussion
iRule with NAME::lookup statement stopped working
Hi,
In a given VS a have a resource iRule to determine the real server through dynamic resolution of a given name.
The iRule looks like this:
when HTTP_REQUEST {
# Hold HTTP data until IP address is resolved
HTTP::collect
#log local0. "Nslookup to resolve: xxx.xxx.org "
# Start a name resolution on the hostname
NAME::lookup xxx.xxx.org
}
when NAME_RESOLVED {
#log local0. "Nslookup result for xxx.xxx.org: [NAME::response]"
node [lindex [NAME::response] 0] 443
# log local0. "DEBUG: [lindex [split [NAME::response] " "] 0]"
# Release HTTP data once hostname is resolved
HTTP::release
}
This iRule works fine on older version (11.6.x and 12.1.x) however it doesn't work at all in version 13.1 or 15.1.
Is this method deprecated ? Does anyone had this issue already ?
Regards,
Pedro
1 Reply
Hi Pedro,
This command has been deprecated with the release of version 15.1 in favor of the RESOLVER and DNSMSG namespaces.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
