Question

How to test subdomain is getting routed through DigitalOcean?

I’m hosting a forum application in DigitalOcean, but the main website was hosted on another hosting service so using CPanel I created a subdomain to that pointed to the forum. Now, I’m moving the main website to DigitalOcean, and I added an A record for the subdomain pointing to the IP of the other droplet hosting the forum.

Everything seems to work find after I changed the name servers on my registrar, but now I would like know if there is a way to test whether the subdomain is getting routed through DigitalOcean. Is there any way to do this?

Thanks,


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@mhweb

The easiest way to test which IP is currently responding to the request would be to use ping :-).

You can do this on Windows, MacOS, or Linux locally:

ping -c 5 sub.domain.com
ping -c5 sub.domain.com