Eli5: How does DNS or DHCP works.

364 views

My isp or government has blocked access to porn sites but from the same wifi network when I change the dns to Google dns(8.8.8.8) all the blocked sites starts working.

In: 0

5 Answers

Anonymous 0 Comments

The internet runs on numerical addresses… 32 bits for IP version 4, and 128 bits for version 6. Humans like text based names, especially when the names mean something to us. Every computer on the internet has a numerical address, either assigned manually by the person running the network, or automatically by DHCP (or other things for IP version 6, but we’re not going there today). If your computer/laptop/phone doesn’t have an address manually assigned, it looks for a DHCP server nearby which will assign it something, along with a bunch of other appropriate network settings that it should know.

One of those settings is a DNS server or a few of them. DNS converts site names to the numerical address for it, and it’s an essential internet service which every provider is expected to offer, either directly or borrowing someone else’s service on behalf of their customers. Normally the way it works is your router will request DHCP from your ISP, and then your PC/laptop/phone will request DHCP from your router and the DNS servers get passed along, or the router will provide itself as a DNS server and act as a relay to your ISP’s assignments so that everyone can get DNS service. What’s important is that your PC/laptop/whatever gets DNS servers in that DHCP message. It really is essential to the internet.

But yes, for whatever reason, your ISP has put in rules to their DNS server that a lookup for your porn web site (i’ll imagine porn.example.com for the sake of this post) will fake a does-not-exist response. Unable to look up the numerical address of porn.example.com, you can’t visit it.

The solution, as you’ve pointed out, is to use a different DNS server with no such rule. Yes, that’s google’s. They’re providing correct answers to queries and you get the numerical address of your porn site just fine.

You are viewing 1 out of 5 answers, click here to view all answers.