RESOLVER::name_lookup

Description

RESOLVER::name_lookup attempts to send a DNS request using a specified net resolver, a domain name, and any query type. A DNS request is sent, and response will returned in the form of an opaque dns_message structure. This structure can be used by RESOLVER::summarize and the DNSMSG:: iRule commands to extract the specific data in a user friendly format.
The key difference between this command and the older RESOLV::lookup command is that RESOLVER:name_lookup can be used with any iRule event and does not require a GTM license.

Syntax

RESOLVER::name_lookup <net_resolver_name> <name> <type>

Examples

when CLIENT_ACCEPTED {
        set result [RESOLVER::name_lookup "/Common/r1" www.abc.com a]
}