{"id":13932914,"url":"https://github.com/lbp0200/prc-dns","last_synced_at":"2025-08-01T16:09:03.790Z","repository":{"id":146608221,"uuid":"131395472","full_name":"lbp0200/prc-dns","owner":"lbp0200","description":"对CDN友好的DNS服务器，区分国内外流量的必备工具。","archived":false,"fork":false,"pushed_at":"2019-08-11T16:21:27.000Z","size":73,"stargazers_count":49,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T17:54:03.286Z","etag":null,"topics":["china-dns","dns","dns-over-https","dns-server","python27"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbp0200.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}},"created_at":"2018-04-28T09:32:47.000Z","updated_at":"2023-10-14T07:03:51.000Z","dependencies_parsed_at":"2024-01-17T07:18:17.122Z","dependency_job_id":"8e671429-f681-43ac-98b7-dacf4764f067","html_url":"https://github.com/lbp0200/prc-dns","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lbp0200/prc-dns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbp0200%2Fprc-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbp0200%2Fprc-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbp0200%2Fprc-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbp0200%2Fprc-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbp0200","download_url":"https://codeload.github.com/lbp0200/prc-dns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbp0200%2Fprc-dns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268257079,"owners_count":24221054,"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-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["china-dns","dns","dns-over-https","dns-server","python27"],"created_at":"2024-08-07T21:01:21.421Z","updated_at":"2025-08-01T16:09:03.766Z","avatar_url":"https://github.com/lbp0200.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# a DNS query agent for the people in PRC\n\n## Install or Update\n```\npip install -U git+https://github.com/lbp0200/prc-dns.git\n```\n\n## 用supervisor启动\n配置文件\n\n使用免费的PHP空间解析\n```\n[program:prc-dns]\ncommand=/home/data/pyenv/2.7.14/bin/prcdns\nautostart=true\nautorestart=true\nuser=data\n```\n\n走SS通道解析，推荐，租个[搬瓦工](https://polr.liuboping.com/9zuU9)、[Vultr](https://polr.liuboping.com/PrgTf)、\n[ChangeIP](https://polr.liuboping.com/changeip)、[PnzHost](https://polr.liuboping.com/pnzhost)，其实也花不了多少钱。\n```\n[program:prc-dns]\ncommand=/home/data/pyenv/2.7.14/bin/prcdns --proxy 127.0.0.1:1080\nautostart=true\nautorestart=true\nuser=data\n```\n\n## 为什么不用OPENDNS\n曾经用过pdnsd，设置上游为OPENDNS的TCP:208.67.222.222:443，发现`img.alicdn.com`解析到了\n`69.192.12.15`香港，所以才做这个东西，用`https://dns.google.com/`查询DNS，根据`edns_client_subnet`\n设置的公网IP参数，返回最近的IP。\n\n## Wiki\n- [参数说明](doc/parameter.md)\n- [与其他DNS软件配合](doc/with_other.md)\n\n## Thanks\ncopy some code from [Simple DNS server (UDP and TCP) in Python using dnslib.py](https://gist.github.com/andreif/6069838)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbp0200%2Fprc-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbp0200%2Fprc-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbp0200%2Fprc-dns/lists"}