Forum Discussion
Azzeddine_S
Mar 15, 2022Cirrus
How to extract Address from DNS::Answer ??
Hi all i am trying to extract from a DNS:answer ony the IP address of the record by spliting the answer using "} {" spliting delimiter but it seems that using both of these caracters is not possible...
- Mar 16, 2022Here is the answerwhen DNS_RESPONSE {set records [DNS::answer]foreach record $records {log local0. "The IP address for the FQDN [DNS::question name] is [DNS::rdata $record]"}}
Azzeddine_S
Mar 16, 2022Cirrus
Here is the answer
when DNS_RESPONSE {
set records [DNS::answer]
foreach record $records {
log local0. "The IP address for the FQDN [DNS::question name] is [DNS::rdata $record]"
}
}
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