Used to initialize asynchronous components.
Method that performs the dns lookup of the host. If the lookup fails the internal polling client will try again given the optional interval.
The resolved ip address.
Asynchronously constructs and initializes a new instance of a concrete subclass with the optional options.
An options object providing initialization params to the async constructor.
A class used to resolve MyDomains. After a ScratchOrg is created it's host name my not be propagated to the Salesforce DNS service. This service is not exclusive to Salesforce My Domain URL and could be used for any hostname.
(async () => { const options: MyDomainResolver.Options = { url: new URL('http://mydomain.salesforce.com'), timeout: new Time(5, TIME_UNIT.MINUTES), frequency: new Time(10, TIME_UNIT.SECONDS) };
const resolver: MyDomainResolver = await MyDomainResolver.create(options); const ipAddress: AnyJson = await resolver.resolve(); console.log(
Successfully resolved host: ${options.url} to address: ${ipAddress}); })();