Writing on the hosts file correctly.