{"id":28226096,"url":"https://github.com/senseunit/oneaddr","last_synced_at":"2026-02-24T01:31:15.372Z","repository":{"id":219920037,"uuid":"750268745","full_name":"SenseUnit/oneaddr","owner":"SenseUnit","description":"CoreDNS plugin which returns only first address","archived":false,"fork":false,"pushed_at":"2025-06-09T21:42:40.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T22:29:56.552Z","etag":null,"topics":["coredns","coredns-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/SenseUnit.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":"2024-01-30T10:14:04.000Z","updated_at":"2025-06-09T21:42:41.000Z","dependencies_parsed_at":"2024-01-30T11:31:05.255Z","dependency_job_id":"206ffa51-f5db-4e32-b6cd-aaff24f64b00","html_url":"https://github.com/SenseUnit/oneaddr","commit_stats":null,"previous_names":["senseunit/oneaddr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SenseUnit/oneaddr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseUnit%2Foneaddr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseUnit%2Foneaddr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseUnit%2Foneaddr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseUnit%2Foneaddr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SenseUnit","download_url":"https://codeload.github.com/SenseUnit/oneaddr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SenseUnit%2Foneaddr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265453645,"owners_count":23768176,"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":["coredns","coredns-plugin"],"created_at":"2025-05-18T11:10:46.300Z","updated_at":"2026-02-24T01:31:10.351Z","avatar_url":"https://github.com/SenseUnit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oneaddr\n\n## Name\n\n*oneaddr* - filters response and retains only one (first) address\n\n## Description\n\n*oneaddr* will remove all addresses from response except first one.\nIt is intended to be used with loadbalance plugin.\n\n## Syntax\n\n~~~\noneaddr\n~~~\n\n## Examples\n\nLet's consider following configuration for example.org zone. We aim to enable\nround-robin loadbalancing, but ensure fair distribution and reveal just one\nworker server in the DNS response.\n\nZone file `db.example.org`:\n\n~~~\n$ORIGIN example.org.\n@\t3600 IN\tSOA sns.dns.icann.org. noc.dns.icann.org. 2017042745 7200 3600 1209600 3600\n\t3600 IN NS a.iana-servers.net.\n\t3600 IN NS b.iana-servers.net.\n\nwww     IN A     127.0.0.1\nwww     IN A     127.0.0.2\nwww     IN A     127.0.0.3\nwww     IN A     127.0.0.4\nwww     IN A     127.0.0.5\nwww     IN A     127.0.0.6\nwww     IN A     127.0.0.7\nwww     IN A     127.0.0.8\nwww     IN A     127.0.0.9\nwww     IN A     127.0.0.10\n~~~\n\nCoreDNS configuration:\n\n~~~ corefile\nexample.org {\n\tfile db.example.org\n\tloadbalance\n\toneaddr\n}\n~~~\n\nWith such configuration only one A-record will be present in the DNS response.\nSince *loadbalance* module randomizes order and *oneaddr* picks first address,\nIP address in the responses will vary and distribute load across worker servers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenseunit%2Foneaddr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenseunit%2Foneaddr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenseunit%2Foneaddr/lists"}