Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eckigerluca/hetzner-dns-updater
Tool to automatically update an A Record with the Hetzner DNS API when the public IP-Adress changes.
https://github.com/eckigerluca/hetzner-dns-updater
hetzner hetzner-api hetzner-dns node-js nodejs
Last synced: about 1 month ago
JSON representation
Tool to automatically update an A Record with the Hetzner DNS API when the public IP-Adress changes.
- Host: GitHub
- URL: https://github.com/eckigerluca/hetzner-dns-updater
- Owner: EckigerLuca
- License: mit
- Created: 2022-05-02T18:54:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-17T08:37:56.000Z (over 2 years ago)
- Last Synced: 2023-10-22T19:28:53.207Z (about 1 year ago)
- Topics: hetzner, hetzner-api, hetzner-dns, node-js, nodejs
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Hetzner DNS Updater
Tool to automatically update an A Record with the Hetzner DNS API when the public IP-Adress changes.API Docs: https://dns.hetzner.com/api-docs/
##
### What is this script doing?
This script checks every 6 hours if the public IP-Adress has changed, if yes a configured A Record will be updated with the new IP-Adress.### Who should use this software?
Anyone who has a non-static IP-Adress that needs to have a working DNS Record.##
### Installation
#### NOTE: PLEASE LEAVE THE `credentials.json` & `adress.json` UNTOUCHED. Those files are needed to make the script run properly!1. Download the source code
2. Create an API token [here](https://dns.hetzner.com/settings/api-token) and save it directly in the `config.json` file (Replace the URL with your token)
3. Install all required packages with `npm i`
4. Run the `setup.js` with `npm run setup` and follow it's instructions
5. Run the main script with `node .`
6. Extra Steps: Run the software in a screen on a raspberry pi and configure it as a service. Read [here](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6) for more information about adding a service[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/A0A17PL0D)