How to test subdomain is getting routed through DigitalOcean?

August 6, 2017 968 views
Ubuntu DNS

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?


1 Answer


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
Have another answer? Share your knowledge.

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