My answer is a combination of the above because I am connecting to my office via Fortinet SSL VPN for Ubuntu 16.04.
The first thing I had to do is bring up my terminal console and run the following command:
sudo nano /etc/resolvconf/resolv.conf.d/base
I added the following example:
Then I saved the file by pressing
CTRL-O and closed nano by pressing
I then did the following and it worked perfectly:
To make Chrome respect the new entry, do the follwing:
/etc/hosts as @Renan described.
- Go to
- Choose since the beginning of time.
- Check Empty the cache, but uncheck everything else.
- Click Clear browsing data and wait for it to finish.
- Restart Chrome.
Chrome should respect your hosts file now.