How to add and remove a hostname