Manage your DNS from GitHub with DNSControl

In this post Sven Luijten uses DNSControl from within GitHub Actions to manage DNS: What if you could edit a JavaScript file with your desired DNS configuration, submit a pull request on GitHub, see a preview of the changes you are about to make, and when you merge it, have those changes be applied completely …


This content originally appeared on Bram.us and was authored by Bramus!

In this post Sven Luijten uses DNSControl from within GitHub Actions to manage DNS:

What if you could edit a JavaScript file with your desired DNS configuration, submit a pull request on GitHub, see a preview of the changes you are about to make, and when you merge it, have those changes be applied completely automatically?

The main action behind it is koenrh/dnscontrol-action:

# .github/workflows/push.yml
name: Push DNS changes

on:
  push:
    branches:
      - main

jobs:
  push:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Push DNS changes
        uses: koenrh/dnscontrol-action@v3
        env:
          CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
        with:
          args: push

The action also supports more arguments — as covered in Sven’s post — for checking and previewing.

Manage your DNS from GitHub with DNSControl →


This content originally appeared on Bram.us and was authored by Bramus!


Print Share Comment Cite Upload Translate Updates
APA

Bramus! | Sciencx (2021-03-16T22:31:45+00:00) Manage your DNS from GitHub with DNSControl. Retrieved from https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/

MLA
" » Manage your DNS from GitHub with DNSControl." Bramus! | Sciencx - Tuesday March 16, 2021, https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/
HARVARD
Bramus! | Sciencx Tuesday March 16, 2021 » Manage your DNS from GitHub with DNSControl., viewed ,<https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/>
VANCOUVER
Bramus! | Sciencx - » Manage your DNS from GitHub with DNSControl. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/
CHICAGO
" » Manage your DNS from GitHub with DNSControl." Bramus! | Sciencx - Accessed . https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/
IEEE
" » Manage your DNS from GitHub with DNSControl." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/. [Accessed: ]
rf:citation
» Manage your DNS from GitHub with DNSControl | Bramus! | Sciencx | https://www.scien.cx/2021/03/16/manage-your-dns-from-github-with-dnscontrol/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.