You can use `N/url.resolveDomain` to do that
# suitescript
e
You can use
N/url.resolveDomain
to do that