Click OK to save your changes.
This information is not saved to the /etc/hosts file until you click OK or Apply on the Customize Network Settings window.