Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeknoss/vultr-ddns-php
Utilize Vultr DNS and Vultr API to create yourself a free DDNS!
https://github.com/zeknoss/vultr-ddns-php
ddns homelab php raspberrypi
Last synced: about 2 months ago
JSON representation
Utilize Vultr DNS and Vultr API to create yourself a free DDNS!
- Host: GitHub
- URL: https://github.com/zeknoss/vultr-ddns-php
- Owner: zeknoss
- License: gpl-3.0
- Created: 2023-10-15T19:36:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-16T17:57:14.000Z (about 1 year ago)
- Last Synced: 2023-10-17T17:57:32.689Z (about 1 year ago)
- Topics: ddns, homelab, php, raspberrypi
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VULTR DDNS with PHP
Utilize Vultr DNS and Vultr API to create yourself a free DDNS!You can use this single file (along with a config file) to easily use Vultr API and create yourself a DDNS solution for your homelab.
## How does it work?
1. Have an account on Vultr
2. Obtain an API key from https://my.vultr.com/settings/#settingsapi
3. Create a DNS domain in `Products` > `Network` > `DNS`
4. Create A records (i.e. `local.mydomain.com`, `dev.mydomain.com`, `mymediaserver.mydomain.com`, etc)
5. Clone this repo in your homelab
6. Clone the vultrdns.config.json.sample file and rename it into vultrdns.config.json file
7. Update the config with your settings. `dynamic_records` section should consist of only A record names. I.e. `["local", "dev", "myymediaserver"]`
8. Create a cron job with a reasonable interval as follows: `cd /path/to/repo/directory/ && php VultrDNS.php` (I used every 30 minutes throughout everyday so it will check for changes and update the record accordingly)By the way, big shout outs to @andyjsmith for inspiring me into making this project with his awesome https://github.com/andyjsmith/Vultr-Dynamic-DNS repo!
I know the script is very very crude. So all contributions are welcome :) All hands on deck!