使用场景:
1.内网搭建DNS服务器
2.公司网络广告屏蔽
3.个人科研使用
官网:https://adguard.com/zh_cn/adguard-home/overview.html
- 安装 AdGuardHome
# 环境 (Centos7 / 64位) wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz tar -xf AdGuardHome_linux_amd64.tar.gz -C /opt/ cat << EOF >> /usr/lib/systemd/system/adgurdhome.service [Unit] Description=AdGuard Home After=syslog.target After=network.target [Service] Type=simple User=root Group=root WorkingDirectory=/opt/AdGuardHome ExecStart=/opt/AdGuardHome/AdGuardHome --host 0.0.0.0 Restart=always [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl start adgurdhome.service systemctl status adgurdhome.service | grep Go # 访问过滤出来的地址就行,默认为http://{ip}:3000 # 关闭命令 : systemctl stop adgurdhome.service
- 浏览器进行访问配置
清空原来的上游DNS 加入以下: 119.29.29.29 223.6.6.6 114.114.114.114 114.114.115.115 8.8.8.8 8.8.4.4 223.5.5.5 119.28.28.28 测试保存并启用 按需选择 最快IP 或 并行解析
过滤清单地址:https://gitee.com/halflife/list/raw/master/ad.txt
总结: 搭建很简单, 主要是优化和维护,加油少年!
原文链接:https://www.cnblogs.com/ayers/p/13573476.html
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/22128