Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
esrrhs committed Apr 22, 2021
2 parents 90e2f11 + 467dd3b commit 66f0a06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
```
./yellowdns -l :53 -los 114.114.114.114:53 -exs 8.8.8.8:53 -lor CN -lof GeoLite2-Country.mmdb
```
-l:监听的udp地址,默认53

-los: 境内的dns server,默认114.114.114.114:53,域名解析时,先走境内dns server,发现如果是境外ip,则再重新走境外的dns server
或者使用docker
```
docker run --name yellowdns -d --net=host --restart=always -p 55353:55353/udp esrrhs/yellowdns ./yellowdns -l :55353 -exs 127.0.0.1:55354
```
# 参数说明
* -l:监听的udp地址,默认53

-exs:境外的dns server,默认8.8.8.8:53,境外的ip都用这个dns server做解析
* -los: 境内的dns server,默认114.114.114.114:53,域名解析时,先走境内dns server,发现如果是境外ip,则再重新走境外的dns server

-lor: 境内的定义,默认CN
* -exs:境外的dns server,默认8.8.8.8:53,境外的ip都用这个dns server做解析

-lof: ip查询国家的数据库文件
* -lor: 境内的定义,默认CN

其他的选项,参考-h
* -lof: ip查询国家的数据库文件

docker
```
docker run --name yellowdns -d --net=host --restart=always -p 55353:55353/udp esrrhs/yellowdns ./yellowdns -l :55353 -exs 127.0.0.1:55354
```
* 其他的选项,参考-h
Empty file modified pack.sh
100644 → 100755
Empty file.

0 comments on commit 66f0a06

Please sign in to comment.