diff --git a/mail_recon.py b/mail_recon.py index 112ff99..2bd8fde 100755 --- a/mail_recon.py +++ b/mail_recon.py @@ -33,7 +33,7 @@ _DOMAIN['name'] = args.domain try: # Try running through MX Records and add to _DOMAIN - answers = dns.resolver.query(args.domain, 'MX') + answers = dns.resolver.resolve(args.domain, 'MX') for rdata in answers: _DOMAIN['mx'].append(rdata.exchange.to_text()) print('MX for {}'.format(rdata.exchange)) @@ -58,7 +58,7 @@ def check_365(domain): try: domain_dash = domain.replace('.','-') name_365 = '{}.mail.protection.outlook.com'.format(domain_dash) - answers = dns.resolver.query(name_365,'A') + answers = dns.resolver.resolve(name_365,'A') res = [] for rdata in answers: # Append to res - TODO: Remove this step @@ -76,4 +76,4 @@ def check_365(domain): a = check_365(_DOMAIN['name']) if a: print(a) -print(_DOMAIN) \ No newline at end of file +print(_DOMAIN)