When we try to connect MongoDB Atlas from our local computer we may face DNSHostNotFound: Failed to look up service “”: DNS name does not exist issue.
There could be many reasons but the most common one is, ISP (Internet Service Provider) uses DHCP (Dynamic Host Configuration Protocol) and it may block the Atlas address.
To solve this issue, we can change the DNS setting in our computer and use the public DNS server like Google.
Steps to fix DNSHostNotFound: Failed to look up service “”: DNS name does not exist issue in Windows 10
- Go to Control Panel
- Click Network and Internet
- Click Network and Sharing Center
- Click on Change adapter settings (You may see it in the left top)
- Select the connection you want to change the configuration and click on Properties
- You may prompt for an administrative password.
- Go to the Networking tab and select Internet Protocol Version 4 (TCP/IPv4)
- Click Properties button.
- In the General tab, click on Use the following DNS server address:
- Add Preferred DNS server: 22.214.171.124.
- (Optional) Alternate DNS server: 126.96.36.199
- Click Ok
Now, when you try to connect to your Atlas cluster and it should be connected successfully and the issue
DNSHostNotFound: Failed to look up service "": DNS name does not exist will be gone.
Leave a Reply