通过dnsmasq,将所有域列入黑名单

Explanation使用一行创建dnsmasq-com-blackhole.conf文件,将com的所有域路由到0.0.0.0。您可以使用“address = / home.lab / 127.0.0.1”将allpossiblesubdomains.home.lab指向本地主机或云中的一些其他IP。
.

0

linux命令:echo "address=/com/0.0.0.0" | sudo tee /etc/dnsmasq.d/dnsmasq-com-blackhole.conf && sudo systemctl restart dnsmasq dnsmasq restart systemctl sudo && /etc/dnsmasq.d/dnsmasq-com-blackhole.conf tee sudo | "address=/com/0.0.0.0" echo echo "address=/com/0.0.0.0" | sudo tee /etc/dnsmasq.d/dnsmasq-com-blackhole.conf && sudo systemctl restart dnsmasqrootopen.com
linux命令:echo "address=/com/0.0.0.0" | sudo tee /etc/dnsmasq.d/dnsmasq-com-blackhole.conf && sudo systemctl restart dnsmasq dnsmasq restart systemctl sudo && /etc/dnsmasq.d/dnsmasq-com-blackhole.conf tee sudo | "address=/com/0.0.0.0" echo echo "address=/com/0.0.0.0" | sudo tee /etc/dnsmasq.d/dnsmasq-com-blackhole.conf && sudo systemctl restart dnsmasqrootopen.com
qsqw 2018-03-31 22:12:48
输出

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章