What do you need it for?
Socket.ResolveHost will do it however it is deprecated as it does it on the main thread and will only work if you disable the network on main thread check.
In most cases it is not needed as the host will be resolved automatically.