I have written a script to add websites to the hostfile at certain times of the day. For example, it can block Youtube from 8pm – 10pm. It works well, however the changes aren’t reflected in Chrome. This has something to do with internal DNS caching in Chrome and seemingly cannot be flushed without going into Chrome’s settings or restarting the browser.
Is there any way to flush this cache from the terminal?