Does Ubuntu have a hosts file?
Answer
The hosts file on Ubuntu (and indeed other Linux distributions) is
located at /etc/hosts. … Quite simply, any domain that you would not like your browser to access, can be added to the hosts file with an IP of 127.0. 0.1 . This is the IP address for the local machine you are currently working on.
Answer
The hosts file on Ubuntu (and indeed other Linux distributions) is
located at /etc/hosts. … Quite simply, any domain that you would not like your browser to access, can be added to the hosts file with an IP of 127.0. 0.1 . This is the IP address for the local machine you are currently working on.