Hi @Averell_Tran , there is room to learn more so I also learned new today after your comment.

Please refer to the answer in this post:
What happens(happened) to “mongodb.net”?

There you will see the dig command works and this sentence:

Atlas connections stings are SRV and TXT records and have to be queried specifically for those. The cluster servers are hosted on subdomains.

So, other than real connection or hardware problems, these connection issues we are discussing might actually have a root of mistreatment of these records.

Please check your tools, besides what Stennie added above, and let us know if your problem persists (maybe in another post).