A simple hostname resovler