I'm experimenting with blacklisting. I chose to experiment on my own web site and the blacklisting seem to take affect right away as did the deletion of that blacklist item. Later, I tried that same operation and it was hard to get the blacklist to take affect. I could confirm via SSH on my Mac that Pi-hole was working as expected but Safari and/or Chrome would continue to load the page. So, how can I force pi-hole to update immediately, do I need to click that refresh button in the console? Also, how can I get my Mac and/or the Mac browser to stop caching so aggressively? BTW: I'm assuming this is this issue.
I tried the following with no immediate results:
-restarted browser
-reloaded page
-Empty Caches via Safari Develop menu
-Disable cache in Chrome developer tools...
-typed a bunch of commands in terminal. The following command seemed effective at least once but not later:
sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache
So, is there a quick and easy way to add and/or delete blacklist items and force PH and the client machine (macOS) in this case to show the results immediately?
Pi-Hole updates fairly quickly, but if the domain was recently requested prior to blacklisting, then it remains in cache for a short time. Wait a few seconds.
This was flushing the DNS cache on the Mac, which is typically only required when you change DNS servers and want the Mac to stop using the old ones.
This is the best way to clear the cache in Safari. Once the blacklist takes effect in Pi-Hole, then Safari will see the result.
I ran a command on the pi via SSH that showed it was working as expected, blacklisting in this case. But the Mac still showed the site when the browser was refreshed it seem like I worked on it for more than 5 minutes before I could get the site to fail, the intended bahavoir. How can I get the browser to show the failed page load more quickly? I thought I was dealing with data caches on the Mac.