Pages

Thursday, January 3, 2013

After Changing the hosts File

I edited the hosts file at /etc/hosts , do I need to restart the service for my changes to take effect?

No, it's not necessary. You don't even need to restart the browser. The effects should take place as soon as you refresh or load a web page.

On each DNS request the hosts file is read. This means it is not saved to memory, so the changes you make are in real time.   Your machine checks the hosts file first. If a mapping is not found for a hostname, then it asks your DNS server.

No comments:

Post a Comment