mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
Various DNS updates
- add email stuff for noratrieb.dev - change default TTL
This commit is contained in:
parent
5e68b5fe55
commit
c2d37edad8
3 changed files with 30 additions and 17 deletions
|
|
@ -6,8 +6,8 @@ let
|
|||
hour1 = 3600;
|
||||
hostsToDns = builtins.mapAttrs
|
||||
(name: { publicIPv4, publicIPv6, ... }:
|
||||
lib.optionalAttrs (publicIPv4 != null) { A = [ (ttl hour1 (a publicIPv4)) ]; } //
|
||||
lib.optionalAttrs (publicIPv6 != null) { AAAA = [ (ttl hour1 (aaaa publicIPv6)) ]; })
|
||||
lib.optionalAttrs (publicIPv4 != null) { A = [ (a publicIPv4) ]; } //
|
||||
lib.optionalAttrs (publicIPv6 != null) { AAAA = [ (aaaa publicIPv6) ]; })
|
||||
networkingConfig;
|
||||
vps2 = {
|
||||
A = [ "184.174.32.252" ];
|
||||
|
|
@ -16,17 +16,13 @@ let
|
|||
with hostsToDns;
|
||||
# point nilstrieb.dev to vps1 (retired)
|
||||
vps1 // {
|
||||
TTL = hour1;
|
||||
SOA = {
|
||||
nameServer = "ns1.nilstrieb.dev.";
|
||||
adminEmail = "void@nilstrieb.dev";
|
||||
serial = 2024072601;
|
||||
};
|
||||
|
||||
TXT = [
|
||||
"protonmail-verification=86964dcc4994261eab23dbc53dad613b10bab6de"
|
||||
"v=spf1 include:_spf.protonmail.ch ~all"
|
||||
];
|
||||
|
||||
CAA = [
|
||||
{ issuerCritical = false; tag = "issue"; value = "letsencrypt.org"; }
|
||||
{ issuerCritical = false; tag = "issue"; value = "sectigo.com"; }
|
||||
|
|
@ -37,11 +33,6 @@ let
|
|||
"ns2.nilstrieb.dev."
|
||||
];
|
||||
|
||||
MX = with mx; [
|
||||
(mx 10 "mail.protonmail.ch.")
|
||||
(mx 20 "mailsec.protonmail.ch.")
|
||||
];
|
||||
|
||||
subdomains = {
|
||||
ns1 = dns1;
|
||||
ns2 = dns2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue