-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdns.nix
121 lines (121 loc) · 3.88 KB
/
dns.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{ lib
, ...
}:
{
defaultTTL = 60;
zones =
let
defaults = {
"" = {
mx.data = {
exchange = "www208.your-server.de";
preference = 10;
};
txt.data = [ "v=spf1 mx -all" ];
ns.data = [
"hydrogen.ns.hetzner.com"
"oxygen.ns.hetzner.com"
"helium.ns.hetzner.de"
];
};
"_dmarc" = {
txt.data = "v=DMARC1; p=reject; rua=mailto:[email protected]; ruf=mailto:[email protected]; adkim=s; aspf=s; fo=0:1:d:s;";
};
"default._domainkey" = {
txt.data = "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw97egS/syiVvNUBjmHfPBZC5cDOO0gFuQHJglRSS9/NqDkXHGc6oWt2reYknIlXJwmKBpisjvULsy2oKl88M0cfAD2iQn6IJc+FASpfqPZSidvaMQnqSq4vgB8wzyvlMZ/7vXWJFnntwZl5H+nG8C29A4LLIR8JEfNpBt5G3VEJbLq6JWoQ4075XjJNNqSe53usNL521zWR/P3ENuQ5k2BvdsuHAUbE76GVaOS118SlGT0Gb6erid75E0pl+wcSAKgtVths8mP03hhL8CaTU5v1EU3ClJL7IF6BkMDwSKyabiC7ohFpRVrNzykXE7nBEAocItpxf2jpC5zhB0AgnSwIDAQAB";
};
"autoconfig".cname.data = "mail.your-server.de";
"_imaps._tcp".srv.data = {
priority = 0;
weight = 100;
port = 993;
target = "mail.your-server.de";
};
"_pop3s._tcp".srv.data = {
priority = 0;
weight = 100;
port = 995;
target = "mail.your-server.de";
};
"_submission._tcp".srv.data = {
priority = 0;
weight = 100;
port = 587;
target = "mail.your-server.de";
};
"_autodiscover._tcp".srv.data = {
priority = 0;
weight = 100;
port = 443;
target = "mail.your-server.de";
};
};
in
{
"bigdriver.net" = lib.recursiveUpdate defaults { };
"hainsacker.de" = lib.recursiveUpdate defaults { };
"lehmann.ing" = lib.recursiveUpdate defaults { };
"lehmann.zone" = lib.recursiveUpdate defaults {
"" = {
a.data = "78.46.0.148";
aaaa.data = "2a01:4f8:d0a:2160::2";
};
"www".cname.data = "lehmann.zone";
"cloud".cname.data = "nx24177.your-storageshare.de";
};
"uic-fahrzeugnummer.de" = lib.recursiveUpdate defaults {
"" = {
a.data = "78.46.0.148";
aaaa.data = "2a01:4f8:d0a:2160::2";
};
"www".cname.data = "uic-fahrzeugnummer.de";
};
"xnee.de" = lib.recursiveUpdate defaults {
proxy.a.data = "192.168.10.1";
prometheus.a.data = "192.168.10.1";
grafana.a.data = "192.168.10.1";
mon1.a.data = "192.168.10.2";
mon2.a.data = "192.168.10.3";
mon3.a.data = "192.168.10.4";
};
"xnee.net" = lib.recursiveUpdate defaults {
"" = {
a.data = "78.46.0.148";
aaaa.data = "2a01:4f8:d0a:2160::2";
txt.data = [ "TAILSCALE-fMbKHU9GGi8WDXsYeZxJ" ] ++ defaults."".txt.data;
};
"www".cname.data = "xnee.net";
"pdm" = {
a.data = "192.168.33.4";
aaaa.data = "fde6:bbc7:8946:7387::2104";
};
"ip.heptifili".aaaa = {
data = "fde6:bbc7:8946:7387::2101";
ttl = 1;
};
"yrsa" = {
a.data = "192.168.32.10";
aaaa.data = "fde6:bbc7:8946:7387::200a";
};
"proxmox" = {
a.data = [ "192.168.32.10" ];
aaaa.data = [ "fde6:bbc7:8946:7387::200a" ];
};
"fritzbox" = {
a.data = "192.168.32.1";
aaaa.data = "fde6:bbc7:8946:7387:6b4:feff:feca:b60b";
};
"upptime".cname.data = "peterablehmann.github.io";
"factorio" = {
a.data = [ "213.133.102.102" ];
aaaa.data = [ "2a01:4f8:a0:841d::2" ];
};
"_factorio._udp.walistinkt".srv.data = {
priority = 10;
weight = 10;
target = "factorio.xnee.net";
port = 20108;
};
};
};
}