If you want to change the DNS server using Command Prompt or Windows ... using Command Prompt or PowerShell. It shows all the names of the previously connected internet sources on your screen.
The DNS server provided by your ISP may not be the fastest or most secure option. Google DNS, OpenDNS, and Cloudflare are excellent free DNS servers that can enhance internet speed and security.
The gateway determines where traffic goes outside your network (like the Internet), and the external DNS server is necessary to find names outside your network. Let the installation complete ...