**RHEL/Centos**: `sudo /etc/init.d/network restart`
+**FreeBSD**: `sudo service nscd restart`
+
+To enable the `nscd` daemon initially, it is recommended that you run the following commands:
+
+```
+sudo sysrc nscd_enable="YES""
+sudo service nscd start
+```
+
+Then modify the `hosts` line in your `/etc/nsswitch.conf` file to the following:
+
+```
+hosts: cache files dns
+```
+
**Others**: Consult [this wikipedia article](https://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system).
### Mac OS X
print_success(service_msg.format(result="succeeded"))
dns_clean_file = "/etc/init.d/dns-clean"
- dns_clean_msg = ("Flushing the DNS cache via dns-clean executable {result}")
+ dns_clean_msg = "Flushing the DNS cache via dns-clean executable {result}"
if os.path.isfile(dns_clean_file):
dns_cache_found = True