How to Get Host By Name?

I have the same problem. Have you found a solution to the problem?