Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 150 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys, argparse, dns.resolver
  2.  
  3. domainname = ''
  4. recordname = ''
  5. parser =  argparse.ArgumentParser(description='Odczytuje zadane rekordy z serwera DNS')
  6. parser.add_argument('-d', '--domena', help="Nazwa domeny", required=True, type=str)
  7. parser.add_argument('-r', '--rekord', help="Nazwa rekordu", required=False, type=str)
  8. args = parser.parse_args()
  9. domain= args.domena
  10. if args.rekord is None or args.rekord == 'ANY':
  11.     record = 'A'
  12.     answers = dns.resolver.query(domain,record)
  13. else:
  14.     record = args.rekord
  15.     answers = dns.resolver.query(domain, record)
  16. for rdata in answers:
  17.     print ('Nazwa:', domain,';rekord:' ,record, ';Wartosc:', rdata.to_text())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top