Forum Discussion
Marcus_Hong_Yu
Nimbostratus
Jun 13, 2017RESOLV::lookup not able to pick resolved IP from DNS query answer
I recently used an irule on LTM to do DNS query for traffic forwarding. I used RESOLV::lookup in the irule to go against my DNS server and use resolved IP as pool member IP to establish the connectio...
Marcus_Hong_Yu
Nimbostratus
Jun 13, 2017---following is my irule, It seems [RESOLV::lookup @$dns -a ";] is returning empty, my log has records " IP = "-------
when CLIENT_ACCEPTED { set dns 10.1.1.1 log local0. "SN dns => $dns" set dest [lindex [RESOLV::lookup @$dns -a ";] 0] log local0. " IP = [RESOLV::lookup @$dns -a ";]"
if {$dest eq ""}{ log local0. "No valid IP resolved" reject } else { node $dest 443 log local0. "SN Return IP=> $dest" } }
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