Only purge host-entries when managing hostname/localhost