This commit is contained in:
parent
5380538f38
commit
4a4f82ba84
1 changed files with 34 additions and 6 deletions
|
@ -1,11 +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("stella", "198.8.59.4")
|
, Object.keys(Wolfgirls).map(function(server) {
|
||||||
, AAAA("stella", "2a0f:85c1:31:e11a::")
|
return pointToServer(server, server)
|
||||||
, A("nova", "193.57.159.93")
|
})
|
||||||
, AAAA("nova", "2a0f:85c2:7::3b")
|
// Now we can configure domains
|
||||||
, A("jade", "23.143.82.34")
|
, pointToServer("@", "stella")
|
||||||
, AAAA("jade", "2602:fc26:12:1::35")
|
|
||||||
, TXT("@", "awrf awrf")
|
, TXT("@", "awrf awrf")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue