We didn’t stop the Ubuntu party! Let’s block domains!
I had to check to remind myself that yes, we do have dnsmasq installed.
We have the ability to change what addresses return when our server is asked for any hosts names.
And it’s time to edit toe hosts file, but only one at a time.
/etc/hosts - 1:1
/etc/dnsmasq.conf - address directive whole domains.
Have my old snapshot ready, and let’s go.
sudo vi /etc/dnsmasq.conf
At the address directive, I change the IP address to mine.
double-click is the test domain, and since that has a - in it, I suppose Saturnine-U would work just fine, and the following ip address is where we want to redirect queries to.
Let’s restart with sudo systemctl restart dnsmasq.
ctl in commands certainly appears a lot these days.
That’s about it really.
I had to check to remind myself that yes, we do have dnsmasq installed.
We have the ability to change what addresses return when our server is asked for any hosts names.
And it’s time to edit toe hosts file, but only one at a time.
/etc/hosts - 1:1
/etc/dnsmasq.conf - address directive whole domains.
Have my old snapshot ready, and let’s go.
sudo vi /etc/dnsmasq.conf
At the address directive, I change the IP address to mine.
double-click is the test domain, and since that has a - in it, I suppose Saturnine-U would work just fine, and the following ip address is where we want to redirect queries to.
Let’s restart with sudo systemctl restart dnsmasq.
ctl in commands certainly appears a lot these days.
That’s about it really.
Comments
Post a Comment