Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automate DNS updates and rollbacks across multiple providers using DNSControl and GitHub Actions

License

NotificationsYou must be signed in to change notification settings

fabriziosalmi/dnscontrol-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Easily update, push, and rollback your DNS configuration usingDNSControl andGitHub Actions

Update DNS ConfigurationRollback DNS Configuration

Features

  • DNS configuration CD/CI using DNSControl and GitHub Actions.
  • Preview DNS changes upon each update to dnsconfig.js.
  • Manual push configuration for safer DNS updates.
  • Option torollback to a previous DNS configuration in case of errors.
  • Support formultiple DNS providers for enhancedredundancy.
  • Optional: send notification via Apprise on rollback

How to Use

Quick run

  1. Clone or fork this repository
  2. Make changes
  3. Apply configuration via GitHub Actions

Warning

Don't forget to set your repository visibility toprivate before to make changes

Basic run

Setup Credentials:

  • Refer to creds.json for example configurations of popular DNS providers.
  • Populate the appropriate fields with your credentials.
  • For security, use repository action secrets for sensitive information (e.g.,CLOUDFLARE_API_USER andCLOUDFLARE_API_TOKEN).
  • Remember to give workflows read/write permissions (https://github.com/user/repo/settings/actions)

Configure DNS:

  • Edit and save your DNS settings in dnsconfig.js.
  • This will automatically trigger the "Update DNS" action.

Push Configuration:

  • After the update action has successfully executed, you can manually trigger the "Push Configuration" action to propagate DNS updates.

Rollback (if needed):

  • If there are issues with the DNS update, manually trigger the "Rollback" action to restore the previous configuration.

Advanced Configuration

  • Multi-provider Redundancy: Define multiple DNS providers in dnsconfig.js to achieve redundancy across providers. Example: Using both Cloudflare and AWS.
  • Note: When using Cloudflare's proxying feature in combination with another DNS provider, ensure you handle the logic behind these proxies.

About

Automate DNS updates and rollbacks across multiple providers using DNSControl and GitHub Actions

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp