Let’s say you want to open a website, for instance,www.technewstoday.comon a web browser. The Domain Name System (DNS) on your network translates this URL or hostname into the specific IP address of the web server. Your browser will then use this address to connect to the website.

Your Windows Operating System also saves this information in a DNS resolver cache so that the DNS server does not have to go through name resolution again in the future. But sometimes you may need to delete this cache, especially if you are unable to access some websites.

dns-resolution-process

Depending on your situation, you may also need to reset other components of the internet such as the TCP/IP configuration.

How DNS Works?

Different levels of DNS servers work together to help you load a webpage or website. The web browser’s request first goes to the DNS recursive resolver which queries the Root Nameserver, the Top Level Domain (TLS) Nameserver, and the Domain or Authoritative Nameserver.

Each preceding nameserver sends the next nameserver’s address to the resolver and the Authoritative Nameserver returns the IP address of the required web server. The browser then sends an HTTP or HTTPS request to this address to initiate communication and load the webpage.

command-prompt-run-as-administrator

Since it is a lengthy process, your computer stores the DNS records of the latest visited addresses inthe DNS resolver cache. So, after entering the domain name on the browser, it first views this cache and if the cache can resolve the IP address, the browser directly sends the HTTP or HTTPS request to the DNS server.

How to Flush DNS?

Sometimes, the web servers change their IP address. In such a case, the incorrect data in the DNS cache will cause the browser to attempt to connect to an invalid address. As a result, you can’t open the web pages at all.

This is why most ISPs regularly refresh the DNS cache to avoid storing outdated information. However, your Windows system does not clear the cache regularly, so you may encounter connection issues while trying to load a website. So, it’s better to manually clear the cache whenever you run into such issues.

ipconfig-flushdns

On your computer, there are two levels of DNS cache. One is the cache data stored by the operating system and the other is the dedicated cache of your web browser.

You can clear theDNS cache on Windowsthroughthe administrator-level Command Prompt.

Then, to clear the dedicated DNS cache of your web browsers, follow these steps on your browser:

On Mozilla Firefox

Other Ways to Reset an Internet Connection

While flushing the DNS is the most common way to reset an Internet connection, other network aspects also affect Internet connectivity. So, if you may’t resolve your issue after clearing the DNS, I recommend trying out these methods for a more complete Internet connection or network reset.

Power Cycle Router/Modem

The router is the device that uses the Dynamic Host Configuration Protocol (DHCP) server to assign the IP addresses to your computer. So, if the DHCP is not working properly, you need to power cycle the router to refresh its DHCP configuration. Doing so may also reassign your computer with a new IP address.

Reset TCP/IP Stack

you may also reset the Transmission Control Protocol/Internet Protocol stack altogether to reset all Internet configurations on Windows. It should resolve all internet connectivity issues on your computer’s end.

Reset Network Adapter

Apart from the improper internet settings, issues with your network adapter’s (Wi-Fi or Ethernet) configuration can also cause connection problems. As such, you canreset this configurationaltogether as well.

However, keep in mind that it will reinstall all network adapters, disconnect you from all networks and reset the VPN/Proxy software as well as any virtual networks.

clear-host-cache-chrome-net-internals-dns

clear-dns-cache-mozilla-firefox-networking

unplug-router-power-cable

ipconfig-flushdns-registerdns

ipconfig-release-renew

netsh-winsock-reset-netsh-int-ip-reset

network-reset-now-settings