I have cached the response received from dig command using a c code , and I want to use authorities list to call directly for finding the ip ,avoiding a part of dns lookup , but I have no idea how to do that.
;; AUTHORITY SECTION:
gogole.com. 172748 IN NS ns2.google.com.
gogole.com. 172748 IN NS ns3.google.com.
gogole.com. 172748 IN NS ns1.google.com.
gogole.com. 172748 IN NS ns4.google.com.
;; ADDITIONAL SECTION:
ns2.google.com. 104506 IN A 216.239.34.10
ns1.google.com. 345589 IN A 216.239.32.10
ns3.google.com. 104506 IN A 216.239.36.10
ns4.google.com. 104506 IN A 216.239.38.10
For example this is for google , I want to interrogate ns1.google.com next time to have the ip. Can anyone help me ? Thanks.