# ok-dns 一种能够返回在国内经常被ban,需要更换ip地址(比如[translate.google.com](https://translate.google.com))的web服务器 ## 项目说明 目前支持的域名:translate.google.com 计划支持域名:github.com > 注:期望增加其他域名,可以提交issue ## 使用方式 - 预览地址:`124.223.15.220:16825` - 获取国内可用IP地址,访问`http://127.0.0.1:16825`,将放回 ``` { "translate.google.com": { "ip": "104.224.178.90", "last_update_time": "2024-03-04 06:46:58", "update_count": 1 } } ``` ## 运行说明 配置文件:[参考文档](https://raw.githubusercontent.com/tengfei-xy/ok-dns/main/config.toml) > 注:由于使用了[fastping-rs](https://github.com/bparli/fastping-rs),因此必须使用root权限运行程序 ``` sudo ok-dns -c config.yaml ``` ## 编译说明 1. 安装最新版rust 2. 开始编译,默认编译于`target/release/`文件夹下 ``` cargo build --release ``` ## 代码说明 本项目使用rust编写完成,web框架使用了[actix_web](https://github.com/actix/actix-web)