{"id":20655535,"url":"https://github.com/postmannen/godaddyupdater","last_synced_at":"2025-09-10T07:37:03.986Z","repository":{"id":91227588,"uuid":"241166332","full_name":"postmannen/godaddyupdater","owner":"postmannen","description":"Godaddy dns auto updater. Checks if your public ip have changed, and updates the godaddy dns record if changed. Prometheus exporter builtin.","archived":false,"fork":false,"pushed_at":"2020-03-07T12:08:02.000Z","size":12708,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-28T09:15:45.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/postmannen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-17T17:22:42.000Z","updated_at":"2024-06-19T12:23:03.656Z","dependencies_parsed_at":null,"dependency_job_id":"4513fdfb-5629-455e-bed4-f524da8a581e","html_url":"https://github.com/postmannen/godaddyupdater","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgodaddyupdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgodaddyupdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgodaddyupdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmannen%2Fgodaddyupdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmannen","download_url":"https://codeload.github.com/postmannen/godaddyupdater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242762735,"owners_count":20181266,"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":[],"created_at":"2024-11-16T18:11:38.062Z","updated_at":"2025-03-09T22:39:50.638Z","avatar_url":"https://github.com/postmannen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# godaddyupdater\n\nGodaddy dns auto updater. Checks if your public ip have changed, and updates godaddy dns record if changed.\n\n## About\n\n* Supports key and secret for godaddy API given as env variables, or provided via flags.\n* Built in run scheduler so no need for Cron. Interval set via flag value.\n* Can update both main domain, or sub domain records.\n* Prometheus Exporter for exporting time series data of line status.\n\n## flags\n\nDefault is to use env variables for both godaddy key and secret.\n\n``` bash\n  -auth string\n    Use \"env\" or \"flag\" for way to get key and secret.\\n\n    if value chosen is \"flag\", use the -key and -secret flags.\\\n    if value chosen is \"env\", set the env variables \"goddaddykey\" and \"godaddysecret\"\n     (default \"env\")\n  -checkInterval int\n    check interval in seconds (default 5)\n  -domain string\n    domain name, e.g. -domain=\"erter.org. NB: If you want to update the main domain like erter.org use \"@\" as value with the subDomain flag like  -subDomain=\"@\"\"\n  -key string\n    the key you got at https://developer.godaddy.com/keys\n  -secret string\n    the secret you got at https://developer.godaddy.com/keys\n  -subDomain string\n    domain name, e.g. -subDomain=\"dev\". NB: If you want to update the main domain like erter.org use \"@\" as value like -subDomain=\"@\"\n  -promExpPort string\n    The port number to run the prometheus exporter on written as a string value. Default : -promExpPort=\"2112\" (default \"2112\")\n```\n\n## Example\n\n```bash\ngo run main.go -auth=\"flag\" -key=\"mySecretKey\" -secret=\"mySecretSecret\" -checkInterval=60 -domain=\"erter.org\" -subDomain=\"dev\"\n2020/02/17 20:43:20 Current godaddy ip for dev.erter.org = 193.69.46.161\n2020/02/17 20:44:20 My IP is:193.69.46.162\n2020/02/17 20:44:20 * The ip's are different, preparing to update record at godaddy.\n2020/02/17 20:44:21 Updating godaddy DNS record, OK\n2020/02/17 20:44:21 The ip address have not changed, keeping everything as it is.\n2020/02/17 20:45:21 My IP is:193.69.46.162\n2020/02/17 20:45:21 The ip address have not changed, keeping everything as it is.\n```\n\nNB: Godaddy don't allow faster use of an API endpoint than 60 seconds.\n\n## Dockerize it\n\n### Create an image\n\nChange the startup options like Domain, Prometheus listen port, or scheduled intervals, edit the appropriate settings in the `Dockerfile` before building.\nCurrent defaults are :\n`CMD [\"/app/main\", \"-auth=env\" ,\"-checkInterval=99\" ,\"-domain=erter.org\" ,\"-subDomain=dev\" ,\"-promExpPort=9101\"]`\n\nFrom the repository folder:\n`docker image build -t godaddyupdater:1.0 .`\n\n### Run the container\n\nCreate a file for the environment variables, for example `env.env` like this:\n\n```text\ngodaddykey=supersecretkey\ngodaddysecret=supersecretsecret\n```\n\nThen run the docker container:\n`docker run -it --env-file env.env -p 9101:9101 godaddyupdater:1.0`\n\nTo make it start in daemon mode:\n`docker run -d --env-file env.env -p 9101:9101 godaddyupdater:1.0`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Fgodaddyupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmannen%2Fgodaddyupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmannen%2Fgodaddyupdater/lists"}