restart ur router, and open cmd as admin, netsh int ip reset netsh winsock reset ipconfig /release ipconfig /renew ipconfig /flushdns then restart ur pc
you can also restart ur router, and open cmd as admin, netsh int ip reset netsh winsock reset ipconfig /release ipconfig /renew ipconfig /flushdns then restart ur pc if it's not working then u are having issues with ur dns change it to a different one