Skip to main content

Day 152

 14/08/2020 Friday, Rainy 

Below shows how to block a batch websites using wildcard in the domain names.

DNSMASQ

Install dnsmasq on macOS with homebrew:

~ brew install dnsmasq

 To configure dnsmasq, take the default example configuration at

/usr/local/etc/dnsmasq.conf and edit to taste. 
For individual users
~ vim /usr/local/etc/dnsmasq.conf

# This file will be added to the configuration
conf-file=/Users/your_user_name/.dnsmasq/dnsmasq.conf
~ vim /Users/your_user_name/.dnsmasq/dnsmasq.conf

# example.localhost will be resolved as 127.0.0.1, including subdomains
address=/example.localhost/127.0.0.1
listen-address=127.0.0.1
~ sudo brew services stop dnsmasq

~ sudo brew services start dnsmasq
 

Comments