{"id":13502375,"url":"https://github.com/bensquire/Digital-Ocean-Dynamic-DNS-Updater","last_synced_at":"2025-03-29T10:32:55.948Z","repository":{"id":9880881,"uuid":"11883611","full_name":"bensquire/Digital-Ocean-Dynamic-DNS-Updater","owner":"bensquire","description":"Digital Ocean Dynamic DNS Updater","archived":true,"fork":false,"pushed_at":"2020-03-16T21:27:34.000Z","size":54,"stargazers_count":245,"open_issues_count":7,"forks_count":72,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-31T21:35:44.441Z","etag":null,"topics":["digitalocean","dns","dns-record","php","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bensquire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-04T19:23:25.000Z","updated_at":"2024-10-25T21:08:51.000Z","dependencies_parsed_at":"2022-09-10T12:50:14.452Z","dependency_job_id":null,"html_url":"https://github.com/bensquire/Digital-Ocean-Dynamic-DNS-Updater","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensquire%2FDigital-Ocean-Dynamic-DNS-Updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensquire%2FDigital-Ocean-Dynamic-DNS-Updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensquire%2FDigital-Ocean-Dynamic-DNS-Updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bensquire%2FDigital-Ocean-Dynamic-DNS-Updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bensquire","download_url":"https://codeload.github.com/bensquire/Digital-Ocean-Dynamic-DNS-Updater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174207,"owners_count":20735406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digitalocean","dns","dns-record","php","python"],"created_at":"2024-07-31T22:02:11.952Z","updated_at":"2025-03-29T10:32:55.690Z","avatar_url":"https://github.com/bensquire.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"I've decided to mark this reposotory as inactive as I simply don't have the skills, time or inclination to maintain the Python script. The PHP is manageable, but that doesn't seem to be what the people want.\n\nFor now I'm going to mark this repo as archived; if anyone wants to take it over please get in touch.\n\n\nDigital Ocean Dynamic DNS-Updater\n=================================\n\nPurpose:\n--------\nAllows the dynamic updating of an 'A' or 'AAAA' record that is managed by Digital Ocean's DNS servers.\n\n\nLiberated From:\n---------------\nThe original script and idea (i.e. the brains behind the whole thing) were lovingly taken from ['pushingkarma.com'](http://pushingkarma.com/notebook/dynamic-dns-your-home-pc-using-digitaloceans-api/).\n\nHowever it was written using Python v2, I had installed v3 so adapted the script as best I could. I then decided it would be cool to also convert it into PHP (I know at least 1 other person that would find it useful) so that's what I did, enjoy!\n\n\nUsage:\n------\nProvide your API key, the domain you want to update and the 'Record' for that domain and schedule the script to run however\noften you want (using, for example, the Windows Scheduler or a cron job).\n\nE.g:\n\nMy home server has a sticky IP, I want to be able to connect to it remotely using:\n\n    home.joebloggs.com\n\nI'd create an 'A' record in DO with the hostname 'home', under the domain 'joebloggs.co.uk' and while I was there\nretrieve my ['Personal Access Token'](https://cloud.digitalocean.com/settings/applications).\n\n\nExample Usage:\n--------------\nThe PHP script has been designed to be called as a command line tool. Config is passed into it in the form of CLI parameters, for example:\n\n    php updater.php accessToken domain record recordType\n\n    python updater.py accessToken domain record recordType\n\nwhere 'accessToken' is your ['Personal Access Token'](https://cloud.digitalocean.com/settings/applications), 'domain' is the domain name you want to update\n(e.g: joebloggs.com), 'record' is the value of the record you want to update (e.g: home), and 'recordtype' is either A or AAAA.\n\n\nRun Continuously / Cron Style:\n-----------------------------\n\nYou can run this script continuously (every X number of seconds) by calling it:\n\n    # If you wan to run it every 5 minutes\n    python updater.py accessToken domain record recordType --run-every 300\n\nThis mode is perfect if you want to run inside a Docker container, where there is no cron by default.\n\n    TOKEN={your token}\n    DOMAIN={your domain}\n    RECORD={your record}\n    RTYPE=A\n    TIMEOUT=60\n    ARGS=\"$TOKEN $DOMAIN $RECORD $RTYPE --run-every $TIMEOUT\"\n\n    docker run \\\n      -it \\\n      --rm \\\n      --name do-ddns-updater \\\n      -v \"$PWD\":/usr/src/app \\\n      -w /usr/src/app \\\n      python:3 python updater.py $ARGS\n\n\nThanks to:\n----------\n@surfer190, @nickwest, @gnoeley, @ryanwcraig, @c17r, @larroy for adding additional features, testing code and feedback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensquire%2FDigital-Ocean-Dynamic-DNS-Updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbensquire%2FDigital-Ocean-Dynamic-DNS-Updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbensquire%2FDigital-Ocean-Dynamic-DNS-Updater/lists"}