DIY Server Guide

Practical guides for people who run their own servers

Get SPF/TXT using the DIG command

Timothy G Avatar

·

Getting a TXT or an SPF record helps for you to see and verify if you’ve set up your Sender Policy Framework (SPF) record or if you have any unformatted TeXT record set. TXT’s are a great place to place your SPF value so that older servers, that are updated to look for SPF Records can use what they always used in the past. TXT is also used for other services like DomainKeys, LDap records, etc.

For setting up the SPF record, it’s recommended to set both a TXT and SPF record with the same value. That knocks out both old and current servers to get the needed record.

# dig txt diyserver.guide

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.7 <<>> txt diyserver.guide
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52076
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;diyserver.guide. IN TXT

# dig spf diyserver.guide

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.7 <<>> spf diyserver.guide
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49309
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;diyserver.guide. IN SPF
Timothy G Avatar

written by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WordPress Appliance - Powered by TurnKey Linux