Question

How to test subdomain is getting routed through DigitalOcean?

Posted August 6, 2017 1.3k views
UbuntuDNS

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,

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.

×
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
Submit an Answer