#dns #spf #record #txt #lookup #construct #now

decon-spf

This is a simple tool that allows you to deconstruct an existing SPF record that might be retreived in a normal DNS TXT lookup. With version 0.2.0 you can now also construct a new Spf record

6 releases

0.2.6 Dec 18, 2023
0.2.5 Nov 4, 2023
0.2.4 Jan 21, 2022
0.2.3 Dec 9, 2021
0.1.0 Jun 15, 2021

#512 in Parser implementations

Download history 9/week @ 2023-12-18 20/week @ 2024-02-19 8/week @ 2024-02-26 91/week @ 2024-04-01

91 downloads per month

MIT license

165KB
4K SLoC

Latest Version Docs

Overview

This crate allows you to deconstruct an existing SPF record that might be retrieved with a dns query of type TXT.

With 0.2.0. You now have the ability to create SPF records programmatically. Check the Examples directory for sample code.

See Example Code

Lookup and deconstruct Spf record.

Run example

To see a list of available examples.

$ cargo run --example
$ cargo run --example trust-dns-demo
$ cargo run --example build-spf
$ cargo run -F strict-dns --example build-spf-strict
$ cargo run -F serde --example serde-demo

Syntax Validation

This crate is not intended to provide syntax validation.
If you are looking to validate your SPF record. I would suggest you use one of the following.

  1. VamSoft.com
  2. Spf-Record.com

I am sure there are many others that could be found.

Dependencies

~2.3–4MB
~77K SLoC