0
我已經使用c代碼緩存了從dig命令收到的響應,並且我想使用權限列表直接調用以查找ip,避免了dns查找的一部分,但我不知道如何執行此操作。如何調用權威服務器的ip響應?
;; 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
例如,這是爲谷歌,我想詢問ns1.google.com下次有IP。誰能幫我 ?謝謝。