Tcp connection with Domain (MC60 & opencpu)

Hello
I want to connect to the socket using domain
But in opencpu functions, only connection through IP is available.
Converting domain name to IP is time-consuming and there is a possibility of hanging. (Like the existing example: EXAMPLE_TCPCLIENT)

How to connect to the domain using at command?
Thank