A serf event handler to manage /etc/hosts file