Forum Discussion
Using dynamic IPs in a Virtual Server
I ended up with my own solution. My feeble brain couldn't figure out how to do any of the suggested answers with success. The biggest issue for me was to resolve the layered virtual server and the only way I know how to do that was to update the IP's of my two Virtual Servers that represent Whispir's two IP addresses.
My solution, while not very elegant or really aligned with best practice, was to create a bash script that compares latest resolved DNS entries for api.whispir.com (both of them) using DIG against the current Virtual Server IPs (there are two VS's, each with a different IP) - if any of them are different, then update the virtual server destination address with the new IP via a tmsh command.
I use cron to run the script every 5 minutes to ensure I capture any recent changes.
Like I said, not elegant and my scripting skills are novice at best but so far, it's been working a treat for me.
Recent Discussions
Related Content
* 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