Skip to main content

Sane, modular DNS authority (SOA) record parsing

Project description

soaparse

Sane, modular DNS SOA record parsing

Fields are based on https://www.ripe.net/publications/docs/ripe-203

The best-guess email addresses are parsed from the rname field:

  • Replacing with @:
    • the second from last . (email_parsed_last)
    • the first . (email_parsed_first)

Trailing periods are stripped

Usage

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__)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for soaparse, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size soaparse-1.3.0-py3-none-any.whl (2.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size soaparse-1.3.0.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page