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.
is there any way to use them, or may be a more optimal way to get IP address of the record answers.
thanks
- Here 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_SCirrusHere 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]"}}
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