Get-MailRecords

1.0.1

Performs DNS lookups for mail-related records (A, MX, NS, SPF, DMARC, DKIM) on a given domain, email address, or URL. Supports TXT, CNAME, and BOTH record types, DKIM auto-discovery, pipeline/bulk input, and CSV/JSON export.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Get-MailRecords

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Get-MailRecords

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2023 Dan Casmas. Licensed under the GNU General Public License v3.0.

Package Details

Author(s)

  • Dan Casmas

Tags

DNS Mail Email SPF DMARC DKIM MX NS DomainHealth EmailSecurity Networking CrossPlatform

Functions

Get-MailRecords

Dependencies

This module has no dependencies.

Release Notes

Initial release. Supports A, MX, NS, SPF, DMARC, and DKIM lookups. Cross-platform: Windows (Resolve-DnsName) and Linux/macOS (dig). DKIM selector auto-discovery, subdomain handling, pipeline input, and CSV/JSON export.

FileList

Version History

Version Downloads Last updated
1.0.1 (current version) 0 2/25/2026