https://github.com/daniel15/spfflatten
SPF flattening using AutoSPF and PowerDNS
https://github.com/daniel15/spfflatten
Last synced: 11 months ago
JSON representation
SPF flattening using AutoSPF and PowerDNS
- Host: GitHub
- URL: https://github.com/daniel15/spfflatten
- Owner: Daniel15
- License: mit
- Created: 2021-03-27T20:53:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T21:12:32.000Z (about 5 years ago)
- Last Synced: 2025-03-29T17:14:41.670Z (about 1 year ago)
- Language: C#
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SPFFlatten
Loads flattened SPF records from [AutoSPF](https://www.autospf.com/)'s API and inserts them into a PowerDNS zone via the PowerDNS API.
# Requirements
* [.NET 5.0 runtime](https://dotnet.microsoft.com/download/dotnet/5.0)
* PowerDNS server with a configured API key
* AutoSPF account
# Usage
1. Create a PowerDNS record for your source SPF record that you'd like to flatten (eg. `_spf-source.example.com`)
2. Sign up to AutoSPF using that domain
3. Generate an [AutoSPF API key](https://www.autospf.com/settings#/api)
4. Create a new PowerDNS **zone** specifically for the flattened SPF records (eg. `_spf.example.com`)
5. Modify `appsettings.json` to contain all the correct info:
```json
{
"AutoSpfApiKey": "aaaaaaaaaaaaaaa",
"AutoSpfDomain": "_spf-source.example.com",
"DestinationZone": "_spf.example.com",
"PowerDnsServer": "https://dns.example.com/",
"PowerDnsApiKey": "bbbbbbbbb"
}
```
6. Run `dotnet run` in this directory