Forum Discussion
Leonardo_Souza
Jun 04, 2018Cirrocumulus
The lindex just gets an element from a list, starting from 0. Dump the variable resolved_ip to the logs and look what is inside of the list.
If the addition section is not on the list, just get the name, and make another query for a A record. Is not efficient, as you are doing 2 queries, but works. The information in the additional section is to avoid systems to have to do a second query, but if you can't do that with RESOLV::lookup, that is a valid option.