我想弄清楚,我怎么能做挖掘命令
dig ns example.com @8.8.8.8 # example
在dnspython ..
我已经尝试过的是:
res = dns.resolver.Resolver() # also tried with configure=False
res.nameservers = ['8.8.8.8']
answer = res.query('example.com', 'NS') # this raises NoAnswer
感谢您的帮助!