Skip to content
swoiows edited this page Mar 30, 2022 · 9 revisions

Note

屏蔽HTTPS类型的dns请求的出现异常

发现淘宝不能正常使用 日志如下

[INFO] xx.xx.xx.xx HTTPS | yixiu-abtest.alicdn.com.w.cdngslb.com. | REFUSED 0.000231702s 0
[INFO] xx.xx.xx.xx HTTPS | h-adashx.ut.taobao.com. | REFUSED 0.00023109s 0
[INFO] xx.xx.xx.xx HTTPS | apoll.m.taobao.com. | REFUSED 0.000238165s 0
[INFO] xx.xx.xx.xx HTTPS | zconfig.alibabausercontent.com. | REFUSED 0.000191017s 0
[INFO] xx.xx.xx.xx HTTPS | rhdc-acs.m.taobao.com.gds.alibabadns.com. | REFUSED 0.000192276s 0
...
[INFO] xx.xx.xx.xx HTTPS | mars.jd.com. | REFUSED 0.000287887s 0
[INFO] xx.xx.xx.xx HTTPS | amdc.m.taobao.com. | REFUSED 0.000237887s 0
[INFO] xx.xx.xx.xx HTTPS | trade-acs.m.taobao.com. | REFUSED 0.000274886s 0
...
[INFO] xx.xx.xx.xx HTTPS | ifs.tanx.com. | REFUSED 0.000283998s 0
[INFO] xx.xx.xx.xx HTTPS | g.alicdn.com.danuoyi.alicdn.com. | REFUSED 0.000239109s 0
[INFO] xx.xx.xx.xx HTTPS | log.mmstat.com. | REFUSED 0.000292257s 0
[INFO] xx.xx.xx.xx HTTPS | gm.mmstat.com. | REFUSED 0.000182313s 0

Release里面不提供mac osx的包

mac会提示bin文件不被认可,需要自行编译

以服务方式运行

[Unit]
Description=Coredns Service
After=network.target nss-lookup.target

[Service]
User=nobody
WorkingDirectory=/opt/coredns

CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/local/bin/coredns -conf /path-of-config/plus.Corefile
KillMode=process
Restart=on-failure
RestartSec=2
TimeoutStopSec=5

StandardOutput=file:/var/log/coredns.log
StandardError=file:/var/log/coredns.log

[Install]
WantedBy=multi-user.target

Changelog

v1.1.1

  • Support wildcard Mode
  • Optimize logic
  • Remove useless code
  • Add test cases

v1.0.2

  • Disable UPX (suggest)

v1.0.1

  • Optimize logic
  • Update github action

v1.0.0

  • Rename package adblock -> blocked

v0.2.2

  • Update Parser & more test case
  • Add more blocked query type support
  • Add init runtimeConfigs log

v0.2.1

  • Fix using the reload plugin to reload, but the config not flush

v0.2.0

  • Add parser
  • Add etl.go to generate ruleset.dat
  • Update github action