Skip to main content
1 of 3
Dheeraj p
  • 764
  • 5
  • 21

Sitecore CLI - openid-configuration: DNS Fail

We are using Sitecore 10.3. For the local setup we are using docker. The local setup works fine(cm,id and frontend site) except logging in to sitecore using sitecore CLI. It is failing with below error.

Error connecting to https://id.abc.localhost/.well-known/openid-configuration: DNS Fail

I am using the below command to login into sitecore via sitecore cli.

dotnet sitecore login --authority https://id.abc.localhost
--cm https://cm.abc.localhost --allow-write true

It was working fine before, suddenly it stopped working without making any changes. I have checked the host file and i can see an entry for id.abc.localhost and cm.abc.localhost . When I browse the "https://id.abc.localhost/.well-known/openid-configuration", i see a Json result. Also successfully flushed the DNS Resolver Cache using ipconfig /flushdns.

Still the issue is not resolved.

Dheeraj p
  • 764
  • 5
  • 21