We are using Sitecore 10.3. For the local setup we are using docker. The local setup works fine(cm,id id and frontend site) except logging in to sitecoreSitecore using sitecoreSitecore CLI. It is failing with below error.
Error connecting to https://id.abc.localhost/.well-known/openid-configuration: DNS Fail
Error connecting to https://id.abc.localhost/.well-known/openid-configuration: DNS Fail
I am using the below command to login into sitecoreSitecore via sitecoreSitecore 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 iI can see an entry for id.abc.localhostid.abc.localhost
and cm.abc.localhost cm.abc.localhost
.
When I browse the "https://id.abc.localhost/.well-known/openid-configuration"https://id.abc.localhost/.well-known/openid-configuration
, iI see a JsonJSON result.
Also successfully flushed the DNS Resolver Cache using ipconfig /flushdnsipconfig/flushdns
.
Still the issue is not resolved.