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.
Free IP Address lookup API. Find the IP address of a domain and or URL with internet protocol reverse DNS lookup.
Why this matters
Use this article to solve the immediate task, then apply the same approach in MailSlurp to build reliable, testable messaging workflows in production.
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.
Next action
Move from reading to implementation with docs, examples, and a free workspace.
Post topics
Share this article
6 of 24 resources
Learn what people mean by SSL for email, why modern systems really use TLS, how STARTTLS differs from implicit TLS, and what email transport encryption does and does not secure.
Learn the difference between soft and hard bounces, which failures are temporary or permanent, and how to handle retries, suppression, and sender diagnostics without damaging deliverability.
Compare SMTP relay services by workflow fit, sender controls, authentication, diagnostics, and testing needs so you choose the right provider for application email and relay operations.
Learn what teams mean by SMTP API, how it differs from SMTP relay and send email APIs, and how to choose the right model for transactional email, testing, and release control.
Learn what a message undeliverable error usually means, how to separate recipient, policy, size, and routing failures, and how to troubleshoot before blindly resending.
Set up Google Workspace SMTP relay without confusing it with smtp.gmail.com. Learn when to use smtp-relay.gmail.com, which ports and auth modes apply, and how to validate relay changes safely.
Continue reading
Continue with adjacent resources that help you move from concept to implementation.
Find endpoint-level references and SDK setup guides.
See how MailSlurp covers messaging, testing, monitoring, and automation workflows.
Clone ready-to-run repositories in multiple languages.
Watch practical walkthroughs and implementation demos.
Build in hours, not weeks