Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

32.6. /etc/dnsmasq.d/dnsmasq.address.conf

vim /etc/dnsmasq.d/dnsmasq.address.conf

address=/www.mydomain.com/172.16.0.254
		

deny domain

address=/www.facebook.com/127.0.0.1
address=/www.google.com/127.0.0.1
		

32.6.1. 域名劫持

将域名解析到错误的地址,这样可以屏蔽一些网站。

address=/www.facebook.com/127.0.0.1
address=/www.google.com/127.0.0.1
			

例如:在企业网络中不想让员下载安装软件,可以将下载网站解析到错误的地址上去,做到网址屏蔽

address=/www.download.com/127.0.0.1
			
comments powered by Disqus