Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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!