How to: Look up a domain's SPF record using Windows Command Prompt


Instructions

  1. Open Command Prompt.

  2. Type nslookup and press Enter.

    Command Prompt window with the following command typed: nslookup

  3. Type set type=txt and press Enter.

    Command Prompt windows with the following command typed: set type=txt

  4. Type the name of the domain you wish to query and press Enter.

    Command Prompt window. A sample domain is typed (somedomain.com).

Outcome

If an SPF record exists for the domain you entered, it will be displayed in a manner similar to the following:

Command Prompt window showing results of the previous command. The text is as follows: "v=spf1 ip6:fd1b:212c:a5f9::/48 -all"

Type exit and press Enter to exit nslookup.

Command Prompt window with the following command typed: exit

Close the Command Prompt window by clicking the X button in the top right-hand corner or by typing exit and pressing Enter.

Command Prompt window with the following command typed: exit