Compare commits

...

26 Commits

Author SHA1 Message Date
1611f7c58a escape special characters 2025-07-12 19:11:17 +02:00
2c6eace66b take cloudflare dkim into account as well 2025-06-02 09:48:50 +02:00
f0e98e9954 fix ordering 2024-10-05 13:52:37 +02:00
25dd242002 mailing updates 2024-10-05 13:24:24 +02:00
abeae017d0 use cloudflare for mail relaying 2024-08-17 10:49:51 +02:00
d48d35caff Documentation + skiff removal 2024-07-28 13:05:00 +02:00
ba74e801c1 wrong order 2024-01-12 11:09:27 +01:00
aa50d5891a let's try this 2024-01-12 11:08:41 +01:00
2500f23460 rename to alias 2024-01-11 21:53:54 +01:00
2b4d520743 More sensible config 2024-01-11 21:52:20 +01:00
4229fe207f come on 2024-01-11 21:39:43 +01:00
9abfd0889e no ipv6 2024-01-11 18:58:38 +01:00
d4d2af0585 fck 2024-01-11 18:57:29 +01:00
521ac345ff baaah 2024-01-11 18:56:49 +01:00
7537b019da fine, i surrender 2024-01-11 18:51:43 +01:00
0cfbaae8ca going on 2024-01-11 18:49:31 +01:00
0d91494539 like this? 2024-01-11 18:46:35 +01:00
3a7b0a539c escaping 2024-01-11 18:43:02 +01:00
5d0676280b trailing . 2024-01-11 18:40:26 +01:00
1ac3a3da26 maan 2024-01-11 18:38:55 +01:00
5af9ecadb0 come onn 2024-01-11 18:37:14 +01:00
696192dd15 alphabetical, aagain 2024-01-11 18:35:36 +01:00
da7295e196 more lenient pls 2024-01-11 18:34:43 +01:00
10cd9e2933 order, seriously? 2024-01-11 18:32:51 +01:00
4cb5cb12cf or like that? 2024-01-11 18:30:50 +01:00
06a977bd65 wtf 2024-01-11 18:28:46 +01:00
3 changed files with 73 additions and 50 deletions

View File

@@ -0,0 +1,8 @@
# Central DNS management
## Overview
This repository contains the configuration for managing the DNS records for `moll.re` and other domains.
It uses [octodns](https://github.com/octodns/octodns/) along with submodules for cloudflare and ddns.
This configuration is applied through a cron job on the k8s cluster, configured under [https://git.kluster.moll.re/remoll/k3s-infra](https://git.kluster.moll.re/remoll/k3s-infra).

View File

@@ -7,18 +7,12 @@ providers:
kluster:
class: octodns_ddns.DdnsSource
types:
- A # server has no AAAA
cloudflare:
class: octodns_cloudflare.CloudflareProvider
# Your Cloudflare account email address (required, optional if using token)
email: env/CLOUDFLARE_EMAIL
# The API Token or API Key.
# Required permissions for API Tokens are Zone:Read, DNS:Read and DNS:Key.
token: env/CLOUDFLARE_TOKEN
# Optional. Filter by account ID in environments where a token has access
# across more than the permitted number of accounts allowed by Cloudflare.
account_id: env/CLOUDFLARE_ACCOUNT_ID
zones:
@@ -27,4 +21,4 @@ zones:
- config # sets all other records
- kluster # sets kluster.moll.re
targets:
- cloudflare
- cloudflare

View File

@@ -1,51 +1,72 @@
'':
ttl: 60
type: CNAME
values:
- homepage.kluster.moll.re
- type: ALIAS
value: homepage.kluster.moll.re.
# mail forwarding by cloudflare set the auto-ttl to the same value as prescribed by cloudflare
- octodns:
cloudflare:
auto-ttl: true
ttl: 300
type: MX
values:
- exchange: route1.mx.cloudflare.net.
preference: 62
- exchange: route2.mx.cloudflare.net.
preference: 77
- exchange: route3.mx.cloudflare.net.
preference: 27
- octodns:
cloudflare:
auto-ttl: true
ttl: 300
type: TXT
value: v=spf1 include:_spf.mx.cloudflare.net ~all
'*.kluster':
ttl: 60
type: CNAME
value: kluster.moll.re.
# gitea SSH advertised on port 2222
'_ssh._tcp':
type: SRV
values:
- kluster.moll.re
- port: 2222
priority: 0
target: git.kluster.moll.re.
weight: 500
# cloudflare DKIM for cloudflare email routing
'cf2024-1._domainkey':
octodns:
cloudflare:
auto-ttl: true
ttl: 300
type: TXT
value: '"v=DKIM1\; h=sha256\; k=rsa\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiweykoi+o48IOGuP7GR3X0MOExCUDY/BCRHoWBnh3rChl7WhdyCxW3jgq1daEjPPqoi7sJvdg5hEQVsgVRQP4DcnQDVjGMbASQtrY4WmB1VebF+RPJB2ECPsEDTpeiI5ZyUAwJaVX7r6bznU67g7LvFq35yIo4sdlmtZGV+i0H4cpYH9+3JJ78k" "m4KXwaf9xUJCWF6nxeD+qG6Fyruw1Qlbds2r85U9dkNDVAS3gioCvELryh1TxKGiVTkg4wqHTyHfWsp7KD3WQHYJn0RyfJJu6YEmL77zonn7p2SRMvTMP3ZEXibnC9gz3nnhR6wcYL8Q7zXypKTMD58bTixDSJwIDAQAB"'
# SMTP by smtp2go
'em604688':
type: CNAME
value: return.smtp2go.net.
# SMTP by smtp2go
'link':
type: CNAME
value: track.smtp2go.net.
# DKIM by smtp2go
's604688._domainkey':
type: CNAME
value: dkim.smtp2go.net.
'short':
ttl: 60
type: CNAME
values:
- shlink.kluster.moll.re
'skiff1._domainkey':
type: CNAME
values:
- skiff1.tlfind3ul99o2wi.dkim.skiff.com
'skiff2._domainkey':
type: CNAME
values:
- skiff2.tlfind3ul99o2wi.dkim.skiff.com
'moll.re':
- type: MX
values:
- inbound-smtp.skiff.com
- type: TXT
values:
- v=spf1 include:tlfind3ul99o2wi.spf.skiff.com -all
'_ssh._tcp':
type: SRV
values:
- 0 500 2222 git.kluster.moll.re
'_dmarc':
type: TXT
values:
- v=DMARC1; p=reject; pct=100; adkim=s; aspf=s
value: shlink.kluster.moll.re.