How to make hostname resolvable