Forum Discussion
Chris_Phillips
Nimbostratus
Feb 16, 2006Forward using hostname as node, not IP
Hi,
I require the ability to create a forwarding server to forward traffic to a hostname rather than an IP address. A third party we are connecting to provides resilience to their systems by a DNS service, allowing them to provide a hostname rather than a string of potential IP addresses and such. Whilst I can add a node to the big-ip by using a hostname, the hostname is resolved to an IP at configuration time. Instead I require a DNS lookup to be performed on a regular basis when the virtual server is in active use. This does not seem possible within the 9.1.1 software, and would appreciate any information to the contrary, or potential workarounds if any are forthcoming.
Thanks
Chris
- Colin_Walker_12Historic F5 AccountWe here at DevCentral are the folks who work on the API (iControl) and the onboard packet inspector/scripting language (iRules). If you have a question about building iControl apps or writing iRules, this is the place for you.
- Chris_Phillips
Nimbostratus
Sorry, i'd already contacted support and they directed me to you in the hope that an irule can help me out... i lazily pasted my support email largely verbatim. sorry if that was confusing, but i was going for an iRule angle here. - Colin_Walker_12Historic F5 AccountNo problem...
when RULE_INIT { set ::time [clock clicks -seconds] } when HTTP_REQUEST { if{ [expr {$::time + 30}] <= [clock clicks -seconds] } { NAME::lookup "hostnametobeused.com" set ::time [clock clicks -seconds] } else { node $::node 80 } } when NAME_RESOLVED { set ::node [NAME::response] node $::node 80 }
- Chris_Phillips
Nimbostratus
That looks seriously useful now, great! And to think i was expecting to be dissapointed. - Colin_Walker_12Historic F5 AccountWell, assuming that the node in question is not a member of a pool on the BIG-IP, you'd have to log your own stats in the rule.
- Chris_Phillips
Nimbostratus
Hi, - Ethan_Erchinger
Nimbostratus
I was just experimenting with this, but I can't seem to get it to resolve. Anyone know if I need to restart something after modifying tmm_base.tcl? - Ethan_Erchinger
Nimbostratus
Ok, sorry, I did a "bigstart restart tmm", and it all works. Thx. - Chris_Phillips
Nimbostratus
I think i'm missing something here... - Chris_Phillips
Nimbostratus
Hi,
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