Forum Discussion
PeteWhite
Nov 09, 2020Employee
So this is a more object-orientated and scalable way of doing lookups - you can think of the response ($result) being a data object which you can then interrogate as you want to. Below is an example,
when CLIENT_ACCEPTED {
set result [RESOLVER::name_lookup "/Common/resolver1" [IP::client_addr PTR]
log local0.debug "Response code: [ DNSMSG::header $result rcode ]"
foreach rr { [RESOLVER::summarize $result] } {
log local0.debug "Response from resolver1 for [IP::client_addr]: $rr"
}
}