Only purge hosts-entries if we manage localhost-entry
Merge pull request #312 from njam/issue-312

Only purge host-entries when managing hostname/localhost