{"id":13814682,"url":"https://github.com/aa65535/openwrt-chinadns","last_synced_at":"2026-01-28T16:02:07.371Z","repository":{"id":19331734,"uuid":"22570419","full_name":"aa65535/openwrt-chinadns","owner":"aa65535","description":"ChinaDNS for OpenWrt/LEDE","archived":false,"fork":false,"pushed_at":"2020-04-15T10:20:28.000Z","size":122,"stargazers_count":704,"open_issues_count":13,"forks_count":174,"subscribers_count":63,"default_branch":"master","last_synced_at":"2025-04-04T05:12:46.474Z","etag":null,"topics":["chinadns","lede","openwrt"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aa65535.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}},"created_at":"2014-08-03T07:43:38.000Z","updated_at":"2025-02-02T21:19:59.000Z","dependencies_parsed_at":"2022-08-03T09:30:16.168Z","dependency_job_id":null,"html_url":"https://github.com/aa65535/openwrt-chinadns","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/aa65535/openwrt-chinadns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aa65535%2Fopenwrt-chinadns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aa65535%2Fopenwrt-chinadns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aa65535%2Fopenwrt-chinadns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aa65535%2Fopenwrt-chinadns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aa65535","download_url":"https://codeload.github.com/aa65535/openwrt-chinadns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aa65535%2Fopenwrt-chinadns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":["chinadns","lede","openwrt"],"created_at":"2024-08-04T04:02:28.150Z","updated_at":"2026-01-28T16:02:07.353Z","avatar_url":"https://github.com/aa65535.png","language":"Makefile","funding_links":[],"categories":["Makefile"],"sub_categories":[],"readme":"ChinaDNS for OpenWrt\n===\n\n [![Download][B]][2]\n\n简介\n---\n\n 本项目是 [ChinaDNS][1] 在 OpenWrt 上的移植  \n\n编译\n---\n\n - 从 OpenWrt 的 [SDK][S] 编译  \n\n   ```bash\n   # 以 ar71xx 平台为例\n   tar xjf OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2\n   cd OpenWrt-SDK-ar71xx-*\n   # 获取 Makefile\n   git clone https://github.com/aa65535/openwrt-chinadns.git package/chinadns\n   # 选择要编译的包 Network -\u003e ChinaDNS\n   make menuconfig\n   # 开始编译\n   make package/chinadns/compile V=99\n   ```\n\n配置\n---\n\n - 默认 DNS 服务器端口为 `5353`, 可使用 [LuCI][L] 进行配置  \n\n - 可搭配路由器自带的 Dnsmasq 使用 借助其 DNS 缓存提升查询速度  \n\n   \u003eLuCI 中定位至「网络 - DHCP/DNS」  \n   \u003e「基本设置」 **本地服务器** 填写 `127.0.0.1#5353`  \n   \u003e「HOSTS和解析文件」勾选 **忽略解析文件**  \n\n - 不要在 ChinaDNS 的上游使用带 DNS 缓存的本地服务器, 可能无法得到预期效果  \n\n - 遇到 UDP 不稳定的情况, 建议使用 [DNS-Forwarder][D] 将 DNS 查询转换为 TCP 协议  \n\n   \u003eChinaDNS 的上游 DNS 服务器使用 DNS-Forwarder 即可, 配置方法参考 [Wiki][W]  \n\n - 更新 [/etc/chinadns_chnroute.txt][3]  \n   ```bash\n    wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F\\| '/CN\\|ipv4/ { printf(\"%s/%d\\n\", $4, 32-log($5)/log(2)) }' \u003e /etc/chinadns_chnroute.txt\n   ```\n\n----------\n\n Name                     | Description\n -------------------------|-----------------------------------\n [openwrt-dnsmasq][6]     | Dnsmasq Patch \u0026 Makefile for OpenWrt\n [openwrt-shadowsocks][7] | Shadowsocks-libev for OpenWrt\n [openwrt-shadowvpn][5]   | ShadowVPN for OpenWrt\n [openwrt-dist-luci][L]   | LuCI Applications for OpenWrt-dist\n [openwrt-redsocks2][R]   | RedSocks2 for OpenWrt\n\n\n [1]: https://github.com/shadowsocks/ChinaDNS\n [2]: https://github.com/aa65535/openwrt-chinadns/releases/latest\n [3]: https://github.com/shadowsocks/ChinaDNS/blob/master/chnroute.txt\n [5]: https://github.com/aa65535/openwrt-shadowvpn\n [6]: https://github.com/aa65535/openwrt-dnsmasq\n [7]: https://github.com/shadowsocks/openwrt-shadowsocks\n [R]: https://github.com/aa65535/openwrt-redsocks2\n [L]: https://github.com/aa65535/openwrt-dist-luci\n [D]: https://github.com/aa65535/openwrt-dns-forwarder\n [W]: https://github.com/aa65535/openwrt-chinadns/wiki/Use-DNS-Forwarder\n [B]: https://img.shields.io/github/release/aa65535/openwrt-chinadns.svg\n [S]: https://wiki.openwrt.org/doc/howto/obtain.firmware.sdk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faa65535%2Fopenwrt-chinadns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faa65535%2Fopenwrt-chinadns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faa65535%2Fopenwrt-chinadns/lists"}