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?



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

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.


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
ping -c5