Hi Danne,
The work done by the HTTP monitor to gather the resolved IP address(es) is outside the scope of the pre/post-execution scripts, so they wouldn’t be able to get that information directly. You could use an API to get data from previous executions of the script, but the IP could be different from the current execution. Check if the server being monitored responds with a response header containing its IP address.
A better solution would be to use an ActiveGate extension to perform IP lookups. We don’t have a DNS-specific extension right now, but one could be developed by one of our services teams.
Thanks!
Bill