Am able to ping the domain, but not subdomain (digitalocean)

digital-oceandomain-name-systempingsubdomain

My main domain (say: example.com) on DigitalOcean is working ok. I've only one droplet in there.
Then I created 'a' record under my main domain with another subdomain name (1.example.com).

Then, I created another subdomain (2.example.com), in the way as we create a new domain in DO, and made it refer to the same droplet's ip address as my main domain's. Hope I'm able to clear myself.

And Problem is that I'm able to ping example.com, but not able to reach 1.example.com or 2.example.com (both created slightly diff ways in DO). Its been more than an hour since then. I've tried reducing ttl from 3600 to 60 or 600. Ping says "no address associated with hostname". My actual subdomain name are 1.bobu.xyz and 2.bobu.xyz

If I dig these subdomains in Windows Bash, they show the 'a' records pointing to DO's name servers. But no else record is there. How can I reach them/ping them? What am I missing?

Best Answer

dig example.com, dig 1.example.com, and dig 2.example.com should all resolve to an IP address (and as far as I understand you, to the same ip address). If they don't, you did something wrong in your DNS configuration.

This could merely mean that your local resolver has cached old info, so try dig @official.name.server.example.com 1.example.com etc

Related Topic