Insights

How to Resolve "curl (6) Could not resolve host: aka.ms" Error

Learn how to resolve host error for aka.ms in Docker.

Introduction to Docker Containerization

Gone are the days where you have to install Sitecore via PowerShell scripts. Nowadays, Sitecore has been pushing for Docker containerization for development, and it is indeed helpful because it saves a lot of time, and you can have a new team member working on a project within hours instead of days. If you’re installing Sitecore with Docker or actively working on it, chances are you might come across an error message that says "curl (6) Could not resolve host: aka.ms". This error message usually occurs when you try to download or access a file. In this blog post, we will discuss the reasons behind this error message and how to fix it.

How to fix a DNS issue?

One of the most common reasons behind the "curl (6) Could not resolve host: aka.ms" error message is a DNS issue. DNS stands for Domain Name System, and it is responsible for translating human-readable domain names like aka.ms into IP addresses that machines can understand. If there is an issue with your DNS configuration, you won't be able to access the website or file you're trying to download. To fix this, we’ll change our docker daemon’s DNS settings point to a public DNS like Google DNS.

Open the file located at C:\ProgramData\Docker\config\daemon.json and add “dns”: “8.8.8.8” to it.

Resolve curl

How to fix a Firewall issue?

Another reason behind the "curl (6) Could not resolve host: aka.ms" error message could be a firewall issue. Firewalls are designed to protect your computer from potentially harmful traffic, and they can sometimes block legitimate traffic as well. If your firewall is blocking the traffic to aka.ms, you won't be able to access the file. To fix this, you can try disabling your firewall temporarily and see if the issue persists.

Press Windows Key and search for Firewall & network protection.

Resolve curl

Click on each of the settings below and disable them by clicking the slider.

Resolve curl

Resolve curl

*Remember to turn it back on once you finish your task.*

Summary

That’s it, folks. The "curl (6) Could not resolve host: aka.ms" error message can be frustrating, but it is usually easy to fix. In this blog post, we discussed the two most common reasons behind this error message and how to fix them.

Happy decoding!



👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting
 

Meet Karan Patel

Sitecore Developer

🚀🎸🎮

Karan is a Sitecore Certified Developer with over 2 years of experience building and implementing Sitecore solutions using ASP .NET MVC, React, Azure and AWS. He's an avid fan of Counter-Strike and can usually be found playing it if he is not developing. In his spare time, he likes to play guitar and cook Indian food.

Connect with Karan