Skip to content

cresky-github/dorc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

dorc

利用IP,测试域名所在的地区

修改成合适的 路径

file_loc="/etc/smartdns/data/domain2loc.$Query_ID.csv"

file_noip="/etc/smartdns/data/noip.$Query_ID.txt"

file_loc="/etc/smartdns/data/domain2loc.csv"

file_noip="/etc/smartdns/data/noip.txt"

这是域名库的路径

dig +tcp +short $Domain -4 -p 5353 | sort -u -o $file_ipset_cn &

-p 5353 改成国内DNS(IP或端口)

dig +tcp +short $Domain -4 -p 5354 | sort -u -o $file_ipset_ncn &

-p 5353 改成国外DNS(IP或端口)

列说明

image

image

第一列,空

第二列,域名

第三列,国外DNS返回IP定位的地区

第四列,国外DNS返回IP

第五列,国内DNS返回IP定位的地区

第六列,国内DNS返回IP

第七列,COMM/DIRECT/PROXY

COMM 表示 国内/国外DNS解析结果相同(可以理解成没遭到染污)

DIRECT 仅国内DNS解析返回值

PROXY 仅国外DNS解析返回值

第八列,空

用到其它组件

[cide-merger] (https://github.com/zhanhb/cidr-merger)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages