mhweb
By:
mhweb

How to test subdomain is getting routed through DigitalOcean?

August 6, 2017 236 views
DNS Ubuntu

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,

1 Answer

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