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.

Source Distribution

soaparse-1.3.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

soaparse-1.3.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file soaparse-1.3.0.tar.gz.

File metadata

  • Download URL: soaparse-1.3.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for soaparse-1.3.0.tar.gz
Algorithm Hash digest
SHA256 2857872edeea62b4371ae33e1714c4bff4335a83c8e655b99b89a7c55dce5289
MD5 2d4c1cedf5cf0945153b440f4c8fd1aa
BLAKE2b-256 7c95be0c48c6b29fe618851ba809f79bdb6c40297f4e5a80e33340e7e390f83c

See more details on using hashes here.

File details

Details for the file soaparse-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: soaparse-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for soaparse-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5187f3162193d8a8e2493aabcddf60a74ac951e440a01ca460a55fd94ea6ba
MD5 0394143e97400bbfe552cfb69ea75b04
BLAKE2b-256 c8dd2c46c15279e4488a209e153b2e59679db7b58475f73df8f7376f781200f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page