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
將域名解析到錯誤的地址,這樣可以屏蔽一些網站。
address=/www.facebook.com/127.0.0.1
address=/www.google.com/127.0.0.1
例如:在企業網絡中不想讓員下載安裝軟件,可以將下載網站解析到錯誤的地址上去,做到網址屏蔽
address=/www.download.com/127.0.0.1