{"id":38280781,"url":"https://github.com/foi/coredns-ipset","last_synced_at":"2026-03-07T01:08:58.755Z","repository":{"id":300568913,"uuid":"969403244","full_name":"foi/coredns-ipset","owner":"foi","description":"coredns plugin for adding resolved IP-adresses to ipset/nft lists","archived":false,"fork":false,"pushed_at":"2026-01-16T06:40:14.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-31T09:56:29.279Z","etag":null,"topics":["coredns","dns","ipset","nftables"],"latest_commit_sha":null,"homepage":"","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/foi.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-20T04:13:34.000Z","updated_at":"2026-01-16T06:38:10.000Z","dependencies_parsed_at":"2025-10-17T01:38:28.097Z","dependency_job_id":"2c83084e-5025-4cd6-8fe9-c626873385b5","html_url":"https://github.com/foi/coredns-ipset","commit_stats":null,"previous_names":["foi/coredns-ipset"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/foi/coredns-ipset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foi%2Fcoredns-ipset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foi%2Fcoredns-ipset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foi%2Fcoredns-ipset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foi%2Fcoredns-ipset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foi","download_url":"https://codeload.github.com/foi/coredns-ipset/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foi%2Fcoredns-ipset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30204526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"ssl_error","status_checked_at":"2026-03-06T18:57:34.882Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["coredns","dns","ipset","nftables"],"created_at":"2026-01-17T01:58:17.195Z","updated_at":"2026-03-07T01:08:58.733Z","avatar_url":"https://github.com/foi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coredns-ipset\n\nThe plugin for adding resolved IP addresses to ipset (must be installed) or nft set lists. Helps route traffic for domains (and domain suffixes, e.g., .ru will add all ips from .ru domains to desired ipset) through the desired gateway. It supports ipv4 and ipv6 (disabled by default) ipset and nft set lists.\n\n## Building\n\n```bash\ngit clone https://github.com/coredns/coredns\ncd coredns\nsed -i.bak -r '/ipset:.*/d' plugin.cfg\nsed -i.bak '/forward:.*/i ipset:github.com/foi/coredns-ipset' plugin.cfg\ngo get github.com/foi/coredns-ipset\ngo mod tidy\ngo generate\nmake\n```\n\nAlternatively, you can download pre-built binaries from the [releases](https://github.com/foi/coredns-ipset/releases/) page for amd64 or arm64.\n\nFor development, clone the coredns-ipset repository and add to the go.mod file of the [coredns](https://github.com/coredns/coredns) repository: `replace github.com/foi/coredns-ipset =\u003e ../coredns-ipset`, then run `go mod tidy`, `go get github.com/foi/coredns-ipset`, `go mod tidy`, `go generate`, and `make`.\n\n## Prepare binary\n\nIf coredns is planned to listen on port 53, it is necessary to add capabilities to the binary:\n\n```bash\nsudo setcap 'cap_net_bind_service,cap_net_admin=+ep' /usr/local/bin/coredns\n```\n\n## Example configuration\n\n### ipset\n\n```\n. {\n  # some resolvers config\n  ....\n  ipset {\n      # This setting enables IPv6 ipset lists.\n      # By default, only IPv4 ipset lists are used.\n      # The ipset lists must be created in advance, and IPv6 lists should have an -ipv6 suffix.\n      ipv6\n      russia-ipset-name listofdomains.txt anotherlist.txt\n      usa-ipset-name listofdomains2.txt\n  }\n}\n```\n### nftables\n\n```\n. {\n  # some resolvers config\n  ...\n\n  ipset {\n      # This setting enables IPv6 nft set lists.\n      # By default, only IPv4 nft set lists are used.\n      # The nft set lists must be created in advance, and IPv6 lists should have an -ipv6 suffix.\n      # directives' order is important!\n      ipv6\n      nft mytable:inet mytable2:inet\n      russia-nft-set-name listofdomains.txt listofdomains3.txt\n      usa-nft-set-name listofdomains2.txt\n  }\n}\n```\nIf you don't specify \":inet\", it will try to use ipv4 and ipv6 table types (if enabled).\n\nYou can find in [examples](https://github.com/foi/coredns-ipset/tree/main/examples) repo's folder.\n\n## ROADMAP\n\n- [ ] compact build for openwrt\n- [ ] installation instruction for openwrt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoi%2Fcoredns-ipset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoi%2Fcoredns-ipset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoi%2Fcoredns-ipset/lists"}