§2024-11-02

  1. Use dig to find SPF record
$ dig yushei.net txt

; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> yushei.net txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33522
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;yushei.net.			IN	TXT

;; ANSWER SECTION:
yushei.net.		7200	IN	TXT	"v=spf1 include:_spf.google.com mx a:yushei.net a:mail.yushei.net ip4:59.126.118.189 ip4:59.126.118.193 ip4:59.126.118.194 ip4:192.168.0.0/16 ~all"

;; Query time: 246 msec
;; SERVER: 168.95.192.1#53(168.95.192.1) (UDP)
;; WHEN: Sat Nov 02 07:52:27 CST 2024
;; MSG SIZE  rcvd: 197


  1. spf record for yushei.net v=spf1 include:_spf.google.com mx a:yushei.net a:mail.yushei.net ip4:59.126.118.189 ip4:59.126.118.193 ip4:59.126.118.194 ip4:192.168.0.0/16 ~all

  2. Components Explained


  1. v=spf1 redirect=_spf.google.com for gmail.com
  1. Benefits of This Approach