{"id":13619041,"url":"https://github.com/wyhaya/updns","last_synced_at":"2025-04-13T09:44:30.223Z","repository":{"id":45251887,"uuid":"124736194","full_name":"wyhaya/updns","owner":"wyhaya","description":"DNS proxy tool","archived":false,"fork":false,"pushed_at":"2024-03-04T21:35:56.000Z","size":185,"stargazers_count":70,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-25T18:22:11.421Z","etag":null,"topics":["dns","dns-proxy","dns-server","udp"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/wyhaya.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}},"created_at":"2018-03-11T08:11:43.000Z","updated_at":"2024-06-11T09:50:04.808Z","dependencies_parsed_at":"2024-01-14T06:53:43.431Z","dependency_job_id":"6a0a8826-3630-4580-9c74-a2beea6158a7","html_url":"https://github.com/wyhaya/updns","commit_stats":{"total_commits":55,"total_committers":4,"mean_commits":13.75,"dds":0.1454545454545455,"last_synced_commit":"f103b6ac91a5ac4fd84e33c497eaf8b8d7ba8dba"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyhaya%2Fupdns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyhaya%2Fupdns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyhaya%2Fupdns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyhaya%2Fupdns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyhaya","download_url":"https://codeload.github.com/wyhaya/updns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248694173,"owners_count":21146944,"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":["dns","dns-proxy","dns-server","udp"],"created_at":"2024-08-01T21:00:34.114Z","updated_at":"2025-04-13T09:44:30.201Z","avatar_url":"https://github.com/wyhaya.png","language":"Rust","funding_links":[],"categories":["Applications","Rust"],"sub_categories":[],"readme":"# updns\n\n\u003e [!WARNING]  \n\u003e * !!! This project contains severe bugs\n\u003e * !!! No plans for fixes or patches\n\u003e * !!! DO NOT use it in any environment\n\n---\n\nupdns is a simple DNS proxy server developed using `Rust`. You can intercept any domain name and return the ip you need\n\n## Start to use 🚀\n\n```bash\nupdns\n# or\nupdns -c /your/hosts\n```\n\nYou may use `sudo` to run this command because you will use the `53` port\n\n## Running in docker\n\nBuild docker image\n```bash\ndocker build -t updns .\n```\n\nStart up\n```bash\ndocker run -d --name updns -p 53:53/udp -v /root/updns/:/root/.updns/ --restart always updns\n```\n\n## Config\n\nYou can use `updns config` command and then call `vim` edit, or find `~/.updns/config`  edit\n\nYou can specify standard domains, or utilize [regular expressions](https://rustexp.lpil.uk \"rustexp\") for dynamic matching\n\n\u003e Regular expression starts with `~`\n\n```ini\nbind     0.0.0.0:53      # Binding address\nproxy    8.8.8.8:53      # Proxy address\ntimeout  2s              # Proxy timeout (format: 1ms, 1s, 1m, 1h, 1d)\n\n# Domain matching\nexample.com              1.1.1.1\n*.example.com            2.2.2.2\n~^\\w+\\.example\\.[a-z]+$  3.3.3.3\n\n# IPv6\ntest.com                ::\n\n# Import from other file\nimport /other/hosts\n```\n\n## Reference\n\n[Building a DNS server in Rust](https://github.com/EmilHernvall/dnsguide)\n\n## License\n\n[MIT](./LICENSE) license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyhaya%2Fupdns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwyhaya%2Fupdns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyhaya%2Fupdns/lists"}