{"id":184,"date":"2021-03-18T11:33:29","date_gmt":"2021-03-18T11:33:29","guid":{"rendered":"https:\/\/prodmarc.com\/knowledge\/?p=184"},"modified":"2021-03-18T11:33:29","modified_gmt":"2021-03-18T11:33:29","slug":"querying-spf-dkim-and-dmarc-records","status":"publish","type":"post","link":"https:\/\/knowledge.progist.net\/index.php\/2021\/03\/18\/querying-spf-dkim-and-dmarc-records\/","title":{"rendered":"Querying SPF, DKIM and DMARC records"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"184\" class=\"elementor elementor-184\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3d341690 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3d341690\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a7eeac8\" data-id=\"a7eeac8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7fa22d7 elementor-widget elementor-widget-text-editor\" data-id=\"7fa22d7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><\/p>\n<p>The table below shows the commands used in Windows Command Line, Linux Terminal and Mac OS Terminal to query for the SPF, DKIM and DMARC records for a domain.<\/p>\n<p>Follow the instructions below and substitute the word selector and domain with the corresponding DKIM selector and domain you would like to look up.<\/p>\n<table style=\"width: 100%; border: 1px solid lightgrey;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid lightgrey;\">Record<\/th>\n<th style=\"border: 1px solid lightgrey;\">Windows Commands<\/th>\n<th style=\"border: 1px solid lightgrey;\">Linux\/Mac OS Commands<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid lightgrey;\">SPF<\/td>\n<td style=\"border: 1px solid lightgrey;\">nslookup -type=txt domain<\/td>\n<td style=\"border: 1px solid lightgrey;\">dig txt domain<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid lightgrey;\">DKIM<\/td>\n<td style=\"border: 1px solid lightgrey;\">nslookup -type=txt selector._domainkey.domain<\/td>\n<td style=\"border: 1px solid lightgrey;\">dig txt selector._domainkey.domain<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid lightgrey;\">DMARC<\/td>\n<td style=\"border: 1px solid lightgrey;\">nslookup -type=txt _dmarc.domain<\/td>\n<td style=\"border: 1px solid lightgrey;\">dig txt _dmarc.domain<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Steps to query the command<strong>\u00a0:<\/strong><\/p>\n<ol>\n<li>Open Command prompt (Start &gt; Run &gt; cmd)<\/li>\n<li>Type &#8220;nslookup -type=txt&#8221; a space, and then the domain\/host name. e.g. &#8220;nslookup -type=txt google.com&#8221;<\/li>\n<li>If an SPF record exists, the result would be similar to:<br \/><em>&#8220;v=spf1 ip4:207.171.160.0\/19 -all&#8221;<\/em><\/li>\n<li>If there are no results or if there is no &#8220;v=spf1&#8221; property, then there is a problem retrieving the record for the domain, or one does not exist.<\/li>\n<\/ol>\n<p><span style=\"font-weight: bold; font-style: normal;\">Example 1 :<\/span><\/p>\n<p>Querying the SPF record for progist.in using nslookup. nslookup -type=txt progist.in<\/p>\n<p>\u00a0<\/p>\n<p><b>Example 2 :<\/b><br \/>Querying the DKIM key for example.com using dig. You will have to know the DKIM selector &#8211; key (For Example) &#8211; being used in order to query for the DKIM key.dig txt key1._domainkey.example.com<\/p>\n<p><b>Example 3:<\/b><br \/>Querying the DMARC record for progist.in using nslookup.nslookup &#8211; type=txt _dmarc.progist.in<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>The table below shows the commands used in Windows Command Line, Linux Terminal and Mac OS Terminal to query for the SPF, DKIM and DMARC records for a domain. Follow<\/p>\n<p><a href=\"https:\/\/knowledge.progist.net\/index.php\/2021\/03\/18\/querying-spf-dkim-and-dmarc-records\/\" class=\"more-link\">Continue Reading<span class=\"screen-reader-text\">Querying SPF, DKIM and DMARC records<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","om_disable_all_campaigns":false,"footnotes":""},"categories":[7],"tags":[39,51,56,60,97,107,108,109,118,126],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-dmarc","tag-dkim","tag-dkim-record","tag-dmarc","tag-dmarc-record","tag-nslookup","tag-querying-dkim","tag-querying-dmarc","tag-querying-spf","tag-spf","tag-spf-record"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":0,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"wp:attachment":[{"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/knowledge.progist.net\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}