New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sddm

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sddm

Package to check the spf dkim dmarc and mx records by the DNS name

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

SDDM

This is a package to check the SPF, DKIM, DMARC and MX records by DNS Lookup.

Usage

npm install sddm
import { checkDkim, checkSpf, checkDmarc, checkMx } from "sddm";

async function main() {
    const dkim = await checkDkim("reachinbox.ai");
    const spf = await checkSpf("reachinbox.ai");
    const dmarc = await checkDmarc("reachinbox.ai");
    const mx = await checkMx("reachinbox.ai");

    console.log(dkim);
    /**
     * {
     * isValid: true,
     * reason: 'DKIM records found',
     * dkimSelectors: [ 'google' ]
     * }
     */
    console.log(spf);
    /**
     * {
     * isValid: true,
     * reason: 'Valid SPF record',
     * spf: 'v=spf1 include:_spf.google.com ~all'
     * }
     */
    console.log(dmarc);
    /**
     * {
     * isValid: false,
     * reason: 'Multiple DMARC records found'
     * }
     */
    console.log(mx);
    /**
     * {
     *  isValid: true,
     *  reason: 'All MX records are valid',
     *  mx: [
     *    { preference: 1, exchange: 'smtp.google.com' }
     *  ]
     * }
     */
}

main();

Keywords

spf

FAQs

Package last updated on 28 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts