Not able to login using docker login command

Hi,
I am new to docker and trying to run docker on my windows 10 machine.

To pull image or create image using command line docker is asking for username and password and once enter it I am getting following exception.
Error response from daemon: Get “htps://registry-1.docker.io/v2/”: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host

This issue comes in my work network only. Out of work network it work perfectly. Because of proxy I guess.

To fix this issue I have added proxy in docker desktop setting but after that I started getting following issue.
Error response from daemon: Get “htps://registry-1.docker.io/v2/”: Not Found

Please help. Thanks in advance.

Note: put “htps” intentionally in URL.
Thanks,
Pramod