Compare commits
3 commits
9497cb89bf
...
67afb5ef8c
Author | SHA1 | Date | |
---|---|---|---|
|
67afb5ef8c | ||
|
4a4f82ba84 | ||
|
5380538f38 |
1 changed files with 35 additions and 8 deletions
|
@ -1,12 +1,39 @@
|
||||||
|
var Wolfgirls = {
|
||||||
|
"stella": [
|
||||||
|
"198.8.59.4",
|
||||||
|
"2a0f:85c1:31:e11a::"
|
||||||
|
],
|
||||||
|
"nova": [
|
||||||
|
"193.57.159.93",
|
||||||
|
"2a0f:85c2:7::3b"
|
||||||
|
],
|
||||||
|
"jade": [
|
||||||
|
"23.143.82.34",
|
||||||
|
"2602:fc26:12:1::35"
|
||||||
|
],
|
||||||
|
"alice": [
|
||||||
|
"207.167.121.11",
|
||||||
|
"2602:fbf5:1::cfa7:790b"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
function pointToServer(domain, server) {
|
||||||
|
return Wolfgirls[server].map(function(ip) {
|
||||||
|
if (ip.indexOf(":") !== -1) {
|
||||||
|
return AAAA(domain, ip)
|
||||||
|
}
|
||||||
|
return A(domain, ip)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
D("wolfgirl.systems", REG_NONE
|
D("wolfgirl.systems", REG_NONE
|
||||||
, DnsProvider(deSEC)
|
, DnsProvider(deSEC)
|
||||||
, DefaultTTL(3600)
|
, DefaultTTL(3600)
|
||||||
, A("@", "198.8.59.4")
|
, Object.keys(Wolfgirls).map(function(server) {
|
||||||
, AAAA("@", "2a0f:85c1:31:e11a::")
|
return pointToServer(server, server)
|
||||||
, A("stella", "198.8.59.4")
|
})
|
||||||
, AAAA("stella", "2a0f:85c1:31:e11a::")
|
// Now we can configure domains
|
||||||
, A("nova", "193.57.159.93")
|
, pointToServer("@", "stella")
|
||||||
, AAAA("nova", "2a0f:85c2:7::3b")
|
, TXT("@", "awrf awrf")
|
||||||
, A("jade", "23.143.82.34")
|
|
||||||
, AAAA("jade", "2602:fc26:12:1::35")
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue