After modifying /etc/hosts which service needs to be restarted?
After modifying /etc/hosts
, which service(s) need(s) to be restarted for the change to take effect?
Solution 1:
You don't need to restart any services.
When tested on a 14.04 server installation, the changes were reflected immediately.
The only service that I think could be related is 'networking', but it's unnecessary to restart it.
Solution 2:
You can try: (Disclaimer: Don't run it if you're connected via SSH)
sudo ifconfig eth0 down
sudo ifconfig eth0 up
(substitute eth0
with your network card)
but Arronical is right in theory: You don't need it.