dnslookup.py - qNFCpの屋
qNFCpの屋
December 1, 2022
import dns.resolver

name = input('Enter the domain name to resolve: ')
records = ['A', 'AAAA', 'NS', 'MX']
# print(dns.resolver.resolve(name, records[0])[0])
for i in records:
    # print(i," Record: ",dns.resolver.resolve(name, i)[0])
    try:
        for j in dns.resolver.resolve(name, i):
            print(i, " Record: ", j)
    except:
        print("No information for ", i, " RECORD")
暂无评论

添加新评论

Title - Artist
0:00