We create an entry on dnsmasq.d
directory (used to solve domains):
$ sudo mkdir /etc/NetworkManager/dnsmasq.d
$ echo 'address=/dev/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/dev-tld
And we restart NetworkManager
service (you will losse internet connection for a bit):
$ sudo service network-manager restart
And, in some cases, you will also need to restart dnsmasq
service:
$ sudo service dnsmasq restart
Worked with Ubuntu Mate 16.04, doesn't work anymore with Ubuntu Mate 18.04 :(