Add docs for DNS cache for FreeBSD
authorgfyoung <redacted>
Fri, 3 Aug 2018 17:43:32 +0000 (10:43 -0700)
committergfyoung <redacted>
Fri, 3 Aug 2018 17:43:37 +0000 (10:43 -0700)
Closes gh-157.

readme_template.md
updateHostsFile.py

index 0c61de5e96fcdb5f400da16e75ad40938ea878d5..b3c178714bb52217a9c2d3b8c3be65160202ffb8 100644 (file)
@@ -323,6 +323,21 @@ Open a Terminal and run with root privileges:
 
 **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
index 1a1600e2dac8edd4acc4fbed8589d23f677b5e70..e9a10187c6181dcc009bcb9190032dfbb25226fb 100644 (file)
@@ -1097,7 +1097,7 @@ def flush_dns_cache():
                         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
git clone https://git.99rst.org/PROJECT