Forum Discussion
Richard__Harlan
Jun 15, 2006Historic F5 Account
DNS Lookup
Playing with the following rule trying to get DNS lookups working. Every time I hit the rule the name::response allways comes back empty. Any ideas what I am doing wrong. Thanks
when HTTP_RE...
ichalis_37981
Mar 21, 2011Historic F5 Account
Hey aaron,
Yep, if i do a dig @VIP from the Bigip CLI (or from an external client) this works. but within the iRule, the lookup times out...
I have a workaround where i set the resolve retries and timouts to be small and then sequentially try the next server if there is a failure i.e
set ips [RESOLV::lookup @$static::DNS_RESOLVER $host]
set _ipaddress [lindex $ips 0]
if {$_ipaddress eq "" }{
set ips [RESOLV::lookup @$static::DNS_RESOLVER_BACKUP $host]
set _ipaddress [lindex $ips 0]
}
It would be MUCH better if we could avoid the timeout and go directly to the working DNS server once Bigip has marked the other one down...
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