{"id":22911997,"url":"https://github.com/opencoff/ifchange-ddns","last_synced_at":"2025-07-13T13:41:10.592Z","repository":{"id":64302490,"uuid":"325856455","full_name":"opencoff/ifchange-ddns","owner":"opencoff","description":"Monitor network interface for IP address changes and update DDNS","archived":false,"fork":false,"pushed_at":"2025-05-16T19:14:13.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T10:42:54.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opencoff.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,"zenodo":null}},"created_at":"2020-12-31T18:46:48.000Z","updated_at":"2025-05-16T19:14:16.000Z","dependencies_parsed_at":"2025-05-16T20:33:23.777Z","dependency_job_id":null,"html_url":"https://github.com/opencoff/ifchange-ddns","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/opencoff/ifchange-ddns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fifchange-ddns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fifchange-ddns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fifchange-ddns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fifchange-ddns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencoff","download_url":"https://codeload.github.com/opencoff/ifchange-ddns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencoff%2Fifchange-ddns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265151840,"owners_count":23719123,"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-12-14T04:19:31.401Z","updated_at":"2025-07-13T13:41:10.566Z","avatar_url":"https://github.com/opencoff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/opencoff/ifchange-ddns?status.svg)](https://godoc.org/github.com/opencoff/ifchange-ddns)\n[![Go Report Card](https://goreportcard.com/badge/github.com/opencoff/ifchange-ddns)](https://goreportcard.com/report/github.com/opencoff/ifchange-ddns)\n# ifchange-ddns - Monitor network interface and update DDNS\n\n## What is it?\nThis is a small program to monitor a given network interface and \nupdate DDNS when the IPv4 address changes. \n\nI wrote this because OpenBSD dhclient removed the `dhclient-script`\nfunctionality and I needed a way to update DDNS when my ISP assigns \na new IPv4 address.\n\nThe current implementation only has support for namecheap DNS. Other\nproviders can be easily added.\n\n## How do I use it?\nAssuming you also use namecheap:\n\n1. Build the client for your platform:\n\n    ```sh\n        $ make\n        $ # or make for openbsd\n        $ make openbsd\n    ```\n\n2. If you want to run this as a daemon on OpenBSD:\n   Assuming the interface you want to monitor is `em0` and the\n   entry to update is `host.mydomain.com`, as `root`, do:\n\n    ```sh\n       # cp bin/openbsd-amd64/ifchange-ddns /usr/local/bin/\n       # mkdir /etc/ifchanged\n       # cp dist/keyfile.conf /etc/ifchanged/ddns.conf\n       # cp dist/openbsd/ifchanged /etc/rc.d\n       # cat \u003c\u003cEOF \u003e\u003e /etc/rc.conf.local\n       # ifchanged_flags=\"em0 host.mydomain.com /etc/ifchanged/ddns.conf\"\n       # ifchanged_user=nobody\n       # EOF\n       # chmod -R og-rw /etc/ifchanged\n       # chown nobody /etc/ifchanged\n    ```\n\n    Next, edit `/etc/ifchanged/ddns.conf` with the correct DDNS\n    update key from the control panel. The example in\n    `dist/keyfile.conf` is for *reference* only.\n\n    Finally, start the daemon:\n\n    ```sh\n       # /etc/rc.d/ifchanged start\n    ```\n\n    If you want the daemon to start at every boot, add \"ifchanged\"\n    to `pkg_scripts` in `/etc/rc.conf.local`\n\n\n\n## Where do I see logs?\nBy default, the daemon sends logs to syslog\n\n## Can I use this on a different platform?\nYes, on platforms that have a hook for `dhclient-script`, you can\nuse this as a \"oneshot\" update program:\n\n```sh\n    $ ifchange-ddns --oneshot em0 host.mydomain.com /etc/ifchanged/ddns.conf\n```\n\nYou may have to write a small shell script to parse the input\nprovided by `dhclient-script` and invoke `ifchange-ddns`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fifchange-ddns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencoff%2Fifchange-ddns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencoff%2Fifchange-ddns/lists"}