- Posted December 28, 2013 by
This iReport is part of an assignment:
Tell us the Good Stuff!
WWW and DNS – How it works
Sir Tee Berners lee, also called “Inventor of WWW” is the one you should be thankful to,
He, while working at CERN in 1980 proposed a project based on hypertext communication,
And later in 1989 made communication between two systems through HTTP.
He was the creator of first web browser, which was named world wide web, and later renamed to Nexus to avoid confusion.
WWW is a connection of computers worldwide such, that each device can be thought to be connected to every other device.
Considering the size of WWW, i.e. billions of computers connected with each other, it is only possible to browse different websites with the help of DNS.
Back to topic: DNS
Now i can ‘t write everything here now, so we ‘ll take a case study.
Think that a user types google.com in his Web Browser.
What happens next???
>>To connect to a server ( i.e. a web site ) and get its web page requires us to have its IP address.
IP address is a unique figure of numbers which is unique for each computer connected to WWW.
This means if one wants to view google.com, one needs to know IP address of server associated with google.com domain.
>>So how does one gets to know this IP address?……you will be thinking one never gets to know IP address while browsing, CORRECT, Because they are supplied by Domain Name Server or DNS.
Now what are DNS:
Domain Name Servers supply the client with IP address of applied query.
They have a file where IP addresses are written on every line followed by its respective domain name ( website name ).
Even your computer has that kind of file, named HOST file,
Having only one record:
So one can consider the face that 127.0.0.1 will be considered your IP address by Browsers and Services.
Let me show you a trick,
Proceed to this directory: C:\Windows\System32\drivers\etc
One will find the HOST s file there.
Copy it and paste on desktop. Open it with Notepad.
hostsfileLines starting with # are skipped.
Google ‘s IP address is 22.214.171.124
Write it in a new line in HOST file and in front of it after a white-space write Yahoo.com
Save the file and replace the original file with our new file.
When you will type yahoo.com in browser, it will open up Google.com and the browser will think its yahoo.
As i was writing earlier,
What happens when you type a website ‘s name in Address bar of your browser??
Firstly browser checks local host file for DNS record, then Inquires other servers, till it gets a proper DNS record and IP address.
Then it connects to that IP address on port 80,
And using GET method fetches its homepage.
Creepy, isn ‘t it? This all happens in a fraction of second.
You may now have an idea of how DNS works.
One can do many pranks with this but editing host file is not recommended.
Note: Never do editing in system files, as it may harm your computer or even corrupt the system.
I am the owner of http://indianhackers.in and this is not plagiarized data.
- My life