I've used https://github.com/alphabetum/hosts in the past and seems to work pretty well in Linux. Add integration.