Dear all,
It was suggested to me to use the hosts file to protect my computers. In particular, this script was recommended: https://github.com/StevenBlack/hosts
The script works fine in creating a new hosts with the sources listed, but it mentions that I need to "flush the DNS cache" to have the changes applied without a reboot. Googling around, it seems that this would be accomplished by
Code:
service nscd restart
But, I don't have nscd installed. I looked up the package (with apt-cache show) and noticed this:
Quote:
Description-en: GNU C Library: Name Service Cache Daemon
A daemon which handles passwd, group and host lookups
for running programs and caches the results for the next
query. You should install this package only if you use
slow services like LDAP, NIS or NIS+.
So, it is not clear if I need it. Is there another way to make the changes to hosts file take effect?
Thanks!
Luis
P.S.: Is
Code:
systemctl restart networking.service
the answer? I found it in the bottom of the script Github page, but either is has a typo (for using "network.service"), or it does not work. |