How does DNS work?

When you type an address into your browser and press return there are those couple of seconds where your computer has a think before it starts to download the web page you are looking for. It is in these couple of seconds where DNS comes in to play. Let’s use an example to explain this.

If you type in a web address such as and your computer doesn’t know where to find the web page, it simply does what we would do…it asks.

But who does it ask?

Well with every internet provider there are servers that are called DNS resolvers. Your computer starts by asking these DNS resolvers ‘where is’ If the resolver knows it will simply respond with the location. Your computer will go to that location and, hey presto, the web page at appears.

As you can see above, the computer asks the DNS resolver for the location of, and the DNS resolver returns the answer of Now your computer has the location (IP Address), it goes to the web server to retrieve the webpage.

But, what if the DNS resolvers do not know where to find

In this situation the DNS resolver will go looking for the answer…

This may look complicated but we have split it into sections below.

As before, the computer asks the DNS resolver for the location of, but as the DNS resolver does not know where is located, it has to find out.

The DNS resolver starts by reading the address from right to left, starting with As all domains are managed through Nominet this will be the first stop.

The DNS resolver goes to Nominet and asks, What are the nameservers for (Nameservers are servers that store the DNS for a domain.) The Nominet servers will tell the DNS resolver what the nameservers are for

In this case the nameservers for are and – these are the servers that store the DNS for

With this new information the DNS resolver then asks for the location of

The nameservers tell the DNS resolver that is at, and the information is passed back to your computer. Your computer will go to that location, and once again the web page will appear.

After this, the DNS resolver will store the answer for 24 hours in case anyone else asks for that particular website.

All of this happens in a couple of seconds, and now that the DNS resolver has stored the information it has found, the website will appear even faster should we search for it again.

Was this article helpful?

Related guides