How to Edit etc/hosts File

How to Edit etc/hosts File

(For SoftNAS 5.6 and lower)  remove entry for IP address from /etc/hosts

EXAMPLE:  Edit hosts and delete highlighted entries as noted below:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

52.86.152.91 mirror.softnas.com pypi.softnas.com

54.88.117.35 http://softnas.com http://www.softnas.com

 

Edit your /etc/hosts file and comment out (or remove) the entry for 52.86.152.91 mirror.softnas.com pypi.softnas.com  and 54.88.117.35 http://softnas.com http://www.softnas.com

Example:  Use your preferred text editor such as vi or nano. You will need to become root or use sudo in order to save changes to this file:

sudo vi /etc/hosts

delete or comment out with “#” at the front of the line:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

#52.86.152.91 mirror.softnas.com

#54.88.117.35 http://softnas.com http://www.softnas.com

Save file