check SPF record

Discussion in 'Desktop Operation' started by Harsh Shah, Sep 26, 2019.

  1. Harsh Shah

    Harsh Shah Banned

    I want to check SPF record of a domain but form command line. please help me to do this.
    Thanks in advanced.
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    dig +short DOMAIN txt
  3. sbovisjb1

    sbovisjb1 Member HowtoForge Supporter

    To clarify,
     dig txt
    outputs that domains textfile. This means MX, A, CNAME, and all the other DNS records will be shown. If you just want to see the domain's SPF record, type:

    dig TXT | grep -i mx
    The "-i" flag instructs grep to look for and filter the "mx" string in the dig output regardless of case sensitivity.

Share This Page