### Install cdnChecker Source: https://github.com/alwaystest18/cdnchecker/blob/master/README.md Clone the repository, change into the directory, install dependencies, and build the binary. ```bash git clone https://github.com/alwaystest18/cdnChecker.git cd cdnChecker/ go install go build cdnChecker.go ``` -------------------------------- ### Run cdnChecker standalone Source: https://github.com/alwaystest18/cdnchecker/blob/master/README.md Example input domain list and command to run cdnChecker. The output shows only the IP of the domain not using CDN. ```bash $ cat domains.txt www.baidu.com //使用cdn www.qq.com //使用cdn www.alibabagroup.com //使用cdn aurora.tencent.com //未使用cdn $ ./cdnChecker -df domains.txt -cf cdn_cname -r resolvers.txt 43.137.23.148 ``` -------------------------------- ### Pipe cdnChecker output to mapcidr Source: https://github.com/alwaystest18/cdnchecker/blob/master/README.md Combine cdnChecker with mapcidr to generate IP ranges. The example shows the command and its output. ```bash $./cdnChecker -df domains.txt -cf cdn_cname -r resolvers.txt | mapcidr -aggregate-approx -silent 43.137.23.148/32 ``` -------------------------------- ### cdnChecker usage and flags Source: https://github.com/alwaystest18/cdnchecker/blob/master/README.md Shows the command-line flags and their defaults. The -df flag is required for the domain list file. ```text Usage of ./cdnChecker: -cf string //cdn cname文件,默认为同目录cdn_cname cdn cname file (default "cdn_cname") -df string //域名列表文件,注意为host部分,不要带http:// domain list file -o string //未使用cdn域名输出文件,如果不指定生成在同目录no_cdn_domains+时间.txt output domains that are not using cdn to file (default "no_cdn_domains202304040755.txt") -oc string //使用cdn域名输出文件,如果不指定生成在同目录use_cdn_domains+时间.txt output domains that are using cdn to file (default "use_cdn_domains202304040755.txt") -od string //域名:ip的格式,便于根据ip反查域名,如果不指定生成在同目录domain_info+时间.txt output domain info(domain:ip) to file (default "domain_info202304122222.txt") -oi string //未使用cdn的ip输出文件,如果不指定生成在同目录no_cdn_ips+时间.txt output ips that are not using cdn to file (default "no_cdn_ips202304040755.txt") -r string //dns服务器列表文件 dns resolvers file ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.