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")