You can use MailSlurp's REST API to query domains to determine a servers IP address. Here is an example using curl.

Note the header: this is your free API Key. Sign up to create an account.

SDKs