Forum Discussion

Hans_Schneider2's avatar
Hans_Schneider2
Icon for Nimbostratus rankNimbostratus
Nov 23, 2017

irule to select specific dns resolver in http-explicit profile

Hi,

 

I am using an irule to conditionally activate an http-explicit profile if the host match a particular datagroup. I want to know, if it is also possible to select a specific resolver. I will use VS that forward dns to pool of dns resolver (other F5).

 

Example: VS configured with http-explicit and a resolver that forwards all request to a VS that loadbalance to a pool of external resolver

 

Irule: When proxy request : A: If http::host matches external datagroup (contains domain names) : activate http explicit (HTTP::proxy enable) and use external resolver

 

B: else resolve http::host toward an internal resolver, and if the IP is part of an internal subnet specified in an IP datagroup : activate http explicit, but resolve to internal resolver (not the one attached to the profile)

 

C: else: deactivate http explicit, loadbalance to pool

 

So for B: when activating http-explicit it will use the resolver configured on the profile. Instead I want it to use another resolver. Is this possible ?

 

version used :12.1

 

Regards

 

No RepliesBe the first to reply