From 5380538f38b72b00e33fda5d00402d5c371d5d45 Mon Sep 17 00:00:00 2001 From: Haylin Moore Date: Sun, 29 Sep 2024 01:05:27 -0400 Subject: [PATCH 1/2] Create action --- .forgejo/workflows/push.yaml | 14 ++++++++++++++ domains/wolfgirl.systems.js | 1 + 2 files changed, 15 insertions(+) create mode 100644 .forgejo/workflows/push.yaml diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml new file mode 100644 index 0000000..b1e00fc --- /dev/null +++ b/.forgejo/workflows/push.yaml @@ -0,0 +1,14 @@ +on: [push] +jobs: + test: + runs-on: docker + container: + image: stackexchange/dnscontrol:latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Push to DNS + run: dnscontrol push + env: + DESEC_TOKENL: ${{ secrets.DESEC_TOKEN }} \ No newline at end of file diff --git a/domains/wolfgirl.systems.js b/domains/wolfgirl.systems.js index 5d23520..7f05393 100644 --- a/domains/wolfgirl.systems.js +++ b/domains/wolfgirl.systems.js @@ -7,4 +7,5 @@ D("wolfgirl.systems", REG_NONE , AAAA("nova", "2a0f:85c2:7::3b") , A("jade", "23.143.82.34") , AAAA("jade", "2602:fc26:12:1::35") + , TXT("@", "awrf awrf") ) From 4a4f82ba845083a85de40e64336ced4cc8af883f Mon Sep 17 00:00:00 2001 From: Haylin Moore Date: Thu, 10 Oct 2024 20:22:11 -0400 Subject: [PATCH 2/2] Add alice & refactor zone --- domains/wolfgirl.systems.js | 40 +++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/domains/wolfgirl.systems.js b/domains/wolfgirl.systems.js index 7f05393..44d145a 100644 --- a/domains/wolfgirl.systems.js +++ b/domains/wolfgirl.systems.js @@ -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 , DnsProvider(deSEC) , DefaultTTL(3600) - , A("stella", "198.8.59.4") - , AAAA("stella", "2a0f:85c1:31:e11a::") - , A("nova", "193.57.159.93") - , AAAA("nova", "2a0f:85c2:7::3b") - , A("jade", "23.143.82.34") - , AAAA("jade", "2602:fc26:12:1::35") + , Object.keys(Wolfgirls).map(function(server) { + return pointToServer(server, server) + }) + // Now we can configure domains + , pointToServer("@", "stella") , TXT("@", "awrf awrf") )