Should I restart a service or a interface to apply Windows' hosts configuration file changes?

Solution 1:

No, changes to the hosts file are immediate. However, your browser cache settings may sometimes make it appear that changes you have made have not taken effect depending on what you are doing, so it's always best to clear your browser's cache if it appears a change did not take effect.