Forum Discussion
Livius
Cirrus
May 31, 2018Extract the IP address in iRule from ADDITIONAL SECTION response in DNS query
Hi,
I have a piece of code in iRule triggering a DNS query on a VS as follows :
set original_fqdn [findstr $RouteValue "sip:N" 4 ";"]
if {$static::debug} {log local0.info "fqdn =...
youssef1
Cumulonimbus
Jun 04, 2018Hi,
try this:
set clientptr [RESOLV::lookup @8.8.8.8 $original_fqdn]
Where 8.8.8.8 is your dns, you can set a vs if you want:
set clientptr [RESOLV::lookup @/Common/VS $original_fqdn]
You can also retrieve ptr, ... example
set clientptr [RESOLV::lookup @8.8.8.8 -ptr $original_ip]
for your info:
https://devcentral.f5.com/wiki/irules.resolv__lookup.ashx
regards
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