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:
searchdomain domain.local
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
Then I saved the file by pressing CTRL-O
and closed nano by pressing CTRL-X
.
I then did the following and it worked perfectly:
To make Chrome respect the new entry, do the follwing:
Edit /etc/hosts
as @Renan described.
- Go to
chrome://chrome/settings/clearBrowserData
.
- 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.