Unable to connect to cluster even though my ip address is whitelisted

I apologize in advance if this question doesn’t belong here. As the title says, I am unable to connect to my MongoDB cluster even though my IP address is whitelisted. The problem seems to be with my router, as I am able to connect to the cluster via my phone’s network. Here is my stack overflow question where I’ve gone into more details.

The DNS error you are having is probably because the dns servers configured in your router does not handle SRV style connections. Try to set it up to use google’s 8.8.8.8 and 8.8.4.4.