Sane, modular DNS authority (SOA) record parsing
Sane, modular DNS SOA record parsing
Fields are based on https://www.ripe.net/publications/docs/ripe-203
The best-guess email address is parsed from the
Trailing periods are stripped
import json import soaparse soa_record_str = "ns.example.com. email.example.com. 20200101 60 3 2 1" soa = soaparse.soa_parse(soa_record_str) json.dumps(soa.__dict__)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.