class DNS(): def __init__(self, domain): self.domain = domain self.getRecords() def getRecords(self): self.a = '1.2.3.4' self.aaaa = '2001:0db8:85a3:0000:0000:8a2e:0370:7334' self.mx = {'mail.domain.tld': 10} self.txt = 'v=spf1 +a +mx +include:spf.hostingplatform.net.au' self.ns = ['ns1.domain.tld', 'ns2.domain.tld'] self.soa = 'ns1.domain.tld. webmaster.domain.tld. 310875860 900 900 1800 60'