Skip to main content

CLI tool to quickly lookup MX, SPF, DMARC records for many domains

Project description

domain-email-records

PyPi Python Versions Build Tests License

CLI tool to quickly lookup MX, SPF, DMARC records for many domains

Install

pip install domain-email-records

Usage

usage: domain-email-records [-h] [-q | -v] [--chunk-size <size>] [-d [<domain> ...]] [-f <filename>] [--csv-column <col>]

domain-email-records v0.0.0

CLI tool to quickly lookup MX, SPF, DMARC records for many domains

options:
  -h, --help            show this help message and exit
  -q, --quiet           Set quiet logging output
  -v, --verbose         Set verbose logging output
  --chunk-size <size>   Number of domain names to async resolve together (default: 100)

direct:
  -d [<domain> ...], --domains [<domain> ...]
                        Space separated list of domain names to query

filename:
  -f <filename>, --filename <filename>
                        Filename with list of domains to use; either a plain text file list -or- a comma-separated CSV file list.
  --csv-column <col>    CSV column number to use for domain-names -if- the file is CSV formatted (default: 2)

Examples

Domains directly at the CLI

$ domain-email-records -d google.com facebook.com apple.com amazon.com
{
  "google.com": {
    "mx": [
      "smtp.google.com."
    ],
    "spf": [
      "v=spf1 include:_spf.google.com ~all"
    ],
    "dmarc": [
      "v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com"
    ]
  }
}

...

Domains listed in file

The file may be formatted as a flat plain list of domains names or as a CSV.

$ domain-email-records -f alexa-top-1m-20220708.csv
{
  "google.com": {
  ...
}

Copyright © 2022 Nicholas de Jong

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

domain-email-records-0.1.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

domain_email_records-0.1.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

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