from domainInfo import *
domain = "google.com"
print(getDomainInfo(domain))
Response:
{
'domain': 'google.com',
'ip': '172.217.17.14',
'asn': 'AS15169',
'org': 'GOOGLE',
'country_code': 'US',
'ns': ['ns3.google.com.', 'ns1.google.com.', 'ns2.google.com.', 'ns4.google.com.'],
'mx': ['smtp.google.com.']
}