![]() |
|
Do you know where your variables are? | |
PerlMonks |
Dynamic DNS for your GoDaddy domainsby stevieb (Canon) |
on May 17, 2022 at 18:26 UTC ( #11143954=CUFP: print w/replies, xml ) | Need Help?? |
With its API, GoDaddy makes it easy to do dynamic DNS updates for your domain's hostnames. I made it easy to do with Perl with Net::DynDNS::GoDaddy (which uses my new Addr::MyIP to get your current external IP address). I'll give an example, then an example use of the distribution's packaged binary script.
Simple. The library requires a godaddy_api.json file in your home directory (MacOS, Unix or Windows, the software has 100% test coverage on all systems) that looks like this:
Using the binary we'll install when you install the library, it will prompt you for this information on its initial run:
...after the initial run, it won't prompt anymore:
You can specify the IP if you don't want to use your current public-facing one we automatically get for you:
The most useful use for me is to have multiple hostnames ('home', 'office', 'roaming' etc) and just run the program through cron:
My laptop:
Usage:
Have fun! -stevieb
Back to
Cool Uses for Perl
|
|