{"id":24956282,"url":"https://github.com/daschr/dnswatch","last_synced_at":"2025-10-19T00:55:17.103Z","repository":{"id":190359609,"uuid":"274842977","full_name":"daschr/dnswatch","owner":"daschr","description":"watch for changes of A/AAAA records","archived":false,"fork":false,"pushed_at":"2020-08-25T06:56:45.000Z","size":33,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T19:04:57.643Z","etag":null,"topics":["command-line","dns","shell","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daschr.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}},"created_at":"2020-06-25T06:17:04.000Z","updated_at":"2024-12-21T02:21:44.000Z","dependencies_parsed_at":"2023-08-24T09:40:21.941Z","dependency_job_id":null,"html_url":"https://github.com/daschr/dnswatch","commit_stats":null,"previous_names":["daschr/dnswatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daschr/dnswatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fdnswatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fdnswatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fdnswatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fdnswatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daschr","download_url":"https://codeload.github.com/daschr/dnswatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daschr%2Fdnswatch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437369,"owners_count":23928235,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["command-line","dns","shell","shell-scripting"],"created_at":"2025-02-03T06:28:18.543Z","updated_at":"2025-10-19T00:55:17.010Z","avatar_url":"https://github.com/daschr.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnswatch\nWait for changes of DNS A/AAAA records and run a given command each time.\n\n## install\n* `make`\n* `sudo make install`\n\n## usage\n`dnswatch [@\u003cnameserver\u003e|T\u003cstime\u003e|AAAA] [--] [fqdn] [command] [args]...`\n\n The changed records are stored in the envvars `$ADDRESSES` and `$ADDRESS`.\n\n## \"But for what is it good for?!?\"\n\nWell, I use it for wireguard clients connecting to a peer with a dynamic address.\n\n`dnswatch T30 nonexistent.freemyip.com sh -c 'wg-quick down wg0; wg-quick up wg0'`\n\nor\n\n`dnswatch @208.67.222.222 T120 AAAA nonexistent.freemyip.com restart_wireguard.sh`\n\n## more examples\n\n* `dnswatch golem.de sh -c 'echo \"changed to $ADDRESSES!\"'` \u003c-- will contact the default name server (1.1.1.1) every 60 seconds, executes the command in case of change\n* `dnswatch @8.8.8.8 golem.de sh -c 'echo \"changed to $ADDRESSES!\"'` \u003c-- will contact google's name server every 60 seconds, executes the command in case of change\n* `dnswatch @8.8.8.8 T10 golem.de sh -c 'echo \"changed to $ADDRESSES!\"'` \u003c-- will contact google's name server every 10 seconds, executes the command in case of change\n* `dnswatch @8.8.8.8 T10 AAAA golem.de sh -c 'echo \"changed to $ADDRESSES!\"'` \u003c-- will contact google's name server every 10 seconds, fetches the AAAA record, executes the command in case of change\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschr%2Fdnswatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaschr%2Fdnswatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschr%2Fdnswatch/lists"}