dns

DNS Deployment for nordgedanken.dev infra.
git clone git://archive.git.mtrnord.blog/Nordgedanken/dns.git
Log | Files | Refs

commit cd0622f799a8acdfaf4dd4f6f933fef8ec5949a0
parent 1a87440106b434590b575944b091dde3779dda83
Author: Marcel <MTRNord@users.noreply.github.com>
Date:   Sun, 28 Apr 2024 12:56:31 +0200

Merge pull request #31 from Nordgedanken/cloudflare

Update requirements.txt
Diffstat:
Mconfig/midnightthoughts.space.yaml | 14--------------
Mconfig/production.yaml | 34++++++++++++++++++++++++++++++++--
Mrequirements.txt | 3++-
3 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/config/midnightthoughts.space.yaml b/config/midnightthoughts.space.yaml @@ -27,23 +27,9 @@ value: exchange: mail.midnightthoughts.space. preference: 10 - - ttl: 600 - type: NS - values: - - ns1.nordgedanken.dev. - - ns2.nordgedanken.dev. - - ns3.nordgedanken.dev. - ttl: 1800 type: TXT value: google-site-verification=YeO0rqvYWOZoW6yj3MRf77luDe9CURDbmPYLFYiBXo8 -aws: - ttl: 600 - type: NS - values: - - ns-1048.awsdns-03.org. - - ns-1883.awsdns-43.co.uk. - - ns-221.awsdns-27.com. - - ns-659.awsdns-18.net. _dmarc.mail: ttl: 1800 type: TXT diff --git a/config/production.yaml b/config/production.yaml @@ -12,6 +12,33 @@ providers: directory: ./config default_ttl: 3600 enforce_order: false + cloudflare: + class: octodns_cloudflare.CloudflareProvider + # The API Token or API Key. + # Required permissions for API Tokens are Zone:Read, DNS:Read and DNS:Edit. + # Page Rules:Edit is required for managing Page Rules (URLFWD) records. + token: env/CLOUDFLARE_TOKEN + # Import CDN enabled records as CNAME to {}.cdn.cloudflare.net. Records + # ending at .cdn.cloudflare.net. will be ignored when this provider is + # not used as the source and the cdn option is enabled. + # + # See: https://support.cloudflare.com/hc/en-us/articles/115000830351 + cdn: false + # Manage Page Rules (URLFWD) records + # pagerules: true + # Optional. Default: 4. Number of times to retry if a 429 response + # is received. + #retry_count: 4 + # Optional. Default: 300. Number of seconds to wait before retrying. + #retry_period: 300 + # Optional. Default: 50. Number of zones per page. + #zones_per_page: 50 + # Optional. Default: 100. Number of dns records per page. + #records_per_page: 100 + # Optional. Default: 120. Lowest TTL allowed to be set. + # A different limit for (non-)enterprise zone applies. + # See: https://developers.cloudflare.com/dns/manage-dns-records/reference/ttl + #min_ttl: 120 powerdns_ns1: class: octodns_powerdns.PowerDnsProvider # The host on which PowerDNS api is listening (required) @@ -43,10 +70,13 @@ providers: # Send DNS NOTIFY to secondary servers after change (optional, default false) # notify: false zones: - midnightthoughts.space.: &default + midnightthoughts.space.: + sources: [config] + processors: [spf] + targets: [cloudflare] + nordgedanken.dev.: &default sources: [config] processors: [spf] targets: [powerdns_ns1, powerdns_ns2, powerdns_ns3_v2] #targets: [powerdns_ns2, powerdns_ns3_v2] - nordgedanken.dev.: *default miki.community.: *default diff --git a/requirements.txt b/requirements.txt @@ -1,3 +1,4 @@ -octodns==1.2.1 +octodns==1.6.1 octodns-powerdns==0.0.5 octodns-spf==0.0.2 +octodns-cloudflare==0.0.5