Forum Discussion
William_Benett1
Nimbostratus
Oct 20, 2006LB based on DNS response?
Hi folks,
I'm trying to write an iRule to perform a DNS lookup on the IP address of the client, and based on something contained in the reverse, make a load balancing decision.
Ini...
William_Benett1
Nimbostratus
Oct 20, 2006So adding some more data into this. . .
It looks like the tmm_config.tcl changes I made were causing the resolve call to go into nowhere. I changed it to point to a hard coded DNS server instead of $IP_ADDR_LOCALHOST. Now I can write an iRule that can successfully log the reverse of the client IP address. I'm guessing that I need named running on the BIG-IP so it can query itself. Just a caveat I suppose, I've moved on from that.
I'm now getting a TCL error: Rule DNSbasedLD - Address in use (line 3) invoked from within "pool www-pool2"
I still believe that i'm not allowed to make LB decisions in the NAME_RESOLVED event. The only thing I can think of is writing a method, in this iRule, to load balance using the "node" command. That seems really icky. Any advise would be appreciated.
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
