由shawn1m使用go语言开发的DNS服务程序,可自定义端口和协议,支持EDNS Client Subnet和ipv6 源代码和更加详细的使用方法说明在此处(英文)
太简约的使用方法
点击此处到github下载对应平台的overture,解压运行。默认的config.json就已经可以国内外分流抗污染了,甚至还有Windows版。
注意事项:一定要用国内的服务器。有些网站如pixiv.net、steamcommunity.com使用了SNI封锁,即使没有DNS污染也不能访问。
开始搭建
先下载软件本体并解压wget https://github.com/shawn1m/overture/releases/download/v1.4/overture-linux-amd64.zip && unzip overture-linux-amd64.zip使用同目录下的config.json运行
./overture一般来说会弹出以下几行信息
INFO[0000] Overture v1.4 INFO[0000] If you need any help, please visit the project repository: https://github.com/shawn1m/overture INFO[0000] Load domain ./domain_primary_sample successful with 1 records INFO[0000] Load domain ./domain_alternative_sample successful with 1 records INFO[0000] Load ./ip_network_primary_sample successful INFO[0000] Load ./ip_network_alternative_sample successful INFO[0000] Minimum TTL is disabled INFO[0000] Cache is disabled INFO[0000] Load hosts file successful INFO[0000] Start overture on :53想让overture不因为ssh断开而中断?可以使用supervisor、screen、nohup等守护进程,以下为supervisor方法(较为推荐,可随服务器开机启动) 安装
apt install supervisor #Debian、Ubuntu yum install supervisor #CentOS、RHEL echo_supervisord_conf > /etc/supervisord.conf vi /etc/supervisord.conf #如果你不知道vi怎么用的话可以看这里然后把下面这段粘贴在文件最后面(如果你之前没有改过任何文件名并且还是在root文件夹里直接解压的就什么都不用改)
[program:overture] command = /root/overture-linux-amd64 user = root autostart = true autorestart = true修改rc.local使supervisor能开机启动
vi /etc/rc.local在exit 0之前加入以下一行
supervisord -c /etc/supervisord.conf保存之后给rc.local权限
chmod +x /etc/rc.local启动supervisor并查看overture运行状况
supervisord -c /etc/supervisord.conf supervisorctl status|grep "overture"如果显示RUNNING就是运行成功了。
广告
Comments 2 条评论
可以打开谷歌?
@挖站否 理论上服务器设好固定解析就行但是,好像是墙识别到google的ssl证书就会拦截,所以还是不行