India Broadband Forum


Your own DNS

This is a discussion on Your own DNS within the Broadband How to forums, part of the Indian Broadband Forums category; A quick way to resolve URL to IP addresses is to create your own DNS mechanism. This is extremely easy. ...

Go Back   India Broadband Forum > Indian Broadband Forums > Broadband How to

India Broadband Forum


Broadband How to All sorts of technical know how related to internet connections, modems, routers and switches besides other equipment you use for internet connectivity

                      

Reply

 

LinkBack Thread Tools Display Modes
Old 01-06-09, 09:41 PM   #1
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default Your own DNS

A quick way to resolve URL to IP addresses is to create your own DNS mechanism. This is extremely easy. Every computer has a file called hosts. On a UNIX/Linux machine, it resides in /etc directory. In Windows it resides in %SYSTEM_ROOT%\system32\drivers\etc.

(MAC users please update the location).

This is a simple text file and can be edited by any text editor.

I have attached a sample hosts.txt file from my own PC. All you have to do is:

a) download it
b) edit it to suit your requirements
c) rename it as hosts (without the .txt extension)
d) copy it to the desired location.
Attached Files
File Type: txt hosts.txt (1,017 Bytes, 101 views)
__________________
*** Never argue with an idiot ***


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

-------------------------------------------------------------------------------------------
just4kix is offline   Reply With Quote
Old 01-06-09, 09:49 PM   #2
newprouser
Guest
 
Posts: n/a
Default

For big corporations like google , yahoo etc which have multiple servers for a single purpose eg email etc , is it possible to find ip of nearest/fastest server so that we can always get maximum speed ?
  Reply With Quote
Old 01-06-09, 10:02 PM   #3
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default

Google may have many servers but google[dot]com will result into one and only one IP address. The many servers are part of the same cluster.
just4kix is offline   Reply With Quote
Old 01-07-09, 10:26 AM   #4
Silver Member
 
prasannaganesh's Avatar
 
Join Date: Nov 2008
Location: Chennai,Thiruvottriyur
Age: 24
Posts: 338
Rep Power: 2
prasannaganesh is on a distinguished road
Default

yes, as just4kix said, even though there are many servers for a website, it has the same ip address.
prasannaganesh is offline   Reply With Quote
Old 01-21-09, 04:48 PM   #5
Junior Member
 
Join Date: Jun 2008
Age: 24
Posts: 33
Rep Power: 2
dnash is on a distinguished road
Default

Well this won't be of much help.

For example www[dot]google[dot]com

This is actually a server (a load balancer basically) which then redirects you to a server depending on your location and the load on the other servers . And this redirection will again need DNS requests, so unless you can save the IPs of all the backend servers you will still need to wait for DNS requests
dnash is offline   Reply With Quote
Old 01-21-09, 06:34 PM   #6
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default

Quote:
Originally Posted by dnash View Post
Well this won't be of much help.

For example www[dot]google[dot]com

This is actually a server (a load balancer basically) which then redirects you to a server depending on your location and the load on the other servers . And this redirection will again need DNS requests, so unless you can save the IPs of all the backend servers you will still need to wait for DNS requests
This does work. I guarantee that. The other day, BSNL's primary DNS was not working. But the secondary DNS was working. I was unable to surf the net because of this. But a ping to google, yahoo, etc. was working.

So I set the hosts table and internet started working for all the sites that were parts of my hosts table. Other sites would not open. After 30 minutes or so, the BSNL DNS server started working and then internet started working completely.
just4kix is offline   Reply With Quote
Old 01-21-09, 06:37 PM   #7
Bronze Member
 
Join Date: Jan 2009
Age: 18
Posts: 164
Rep Power: 1
Harshytkage is on a distinguished road
Default

Trying it out right now....
Harshytkage is offline   Reply With Quote
Old 01-24-09, 09:10 PM   #8
Bronze Member
 
Join Date: Dec 2008
Posts: 132
Rep Power: 1
DM111PUSP is on a distinguished road
Default

Quote:
Originally Posted by just4kix View Post
Google may have many servers but google[dot]com will result into one and only one IP address. The many servers are part of the same cluster.
I have a utility.. and when i ran it i got this result..

Host Details by Name : google(dot)com
74.125.45.100
209.85.171.100
72.14.205.100

Host Details by Name : www(dot)google(dot)com
74.125.95.103
74.125.95.104
74.125.95.147
74.125.95.99

It shows multiple IP address for same domain name.
DM111PUSP is offline   Reply With Quote
Old 01-24-09, 09:14 PM   #9
Amor vincit omnia
 
Join Date: Dec 2007
Posts: 2,682
Blog Entries: 4
Rep Power: 4
cool_techie_tvm will become famous soon enough
Default

The same can be done in Windows environment by using Treewalk DNS.

Same domain, multiple IP : due to that fact that servers are scattered allover the globe. Whenever a query is rised, the nearest one is connected into.
cool_techie_tvm is offline   Reply With Quote
Old 01-26-09, 03:54 AM   #10
Gold Member
 
Join Date: Apr 2007
Location: Jaipur
Posts: 775
Blog Entries: 1
Rep Power: 3
Gary4gar is on a distinguished road
Default

I think think approch is flawed, as updating of DNS is not done!

i run my own DNS caching server with help of BIND
Gary4gar is offline   Reply With Quote
Old 01-26-09, 08:42 AM   #11
Amor vincit omnia
 
Join Date: Dec 2007
Posts: 2,682
Blog Entries: 4
Rep Power: 4
cool_techie_tvm will become famous soon enough
Default

Treewalk DNS supports DNS updation too !!

BIND is an excellent option for linux.
cool_techie_tvm is offline   Reply With Quote
Old 01-26-09, 03:27 PM   #12
Junior Member
 
Join Date: Oct 2008
Location: delhi
Age: 21
Posts: 26
Rep Power: 2
manyudada is on a distinguished road
Default

ok i know u can do it but why do it?

will it speed up connections or what?

can u explain bro?
manyudada is offline   Reply With Quote
Old 01-26-09, 03:41 PM   #13
Amor vincit omnia
 
Join Date: Dec 2007
Posts: 2,682
Blog Entries: 4
Rep Power: 4
cool_techie_tvm will become famous soon enough
Default

Quote:
Originally Posted by manyudada View Post
ok i know u can do it but why do it?

will it speed up connections or what?

can u explain bro?
DNS is used for domain name resolutions. It acts as a telephone directory. Like whenever u want to call someone, u consult the directory and find the number ultimately calling him. Likewise when an url is entered in the addressbar, then the DNS server is contacted first for corresponding IP address.

Instead of relying on the DNS server of your ISP u can make your own PC as the DNS server. So the timeframe required to contact the ISP's DNS will be reduced drastically.

Connections are not sped up. Minor changes can be noted in browsing experience. Thats all.

Hope it was clear
cool_techie_tvm is offline   Reply With Quote
Old 01-26-09, 06:58 PM   #14
Silver Member
 
Join Date: Dec 2008
Location: h
Posts: 389
Rep Power: 1
powerdoc is on a distinguished road
Default

I know that DNS has no connection with download speed.
But when I tried this while I was downloading a torrent, my speed dropped by about 5 kB/s.
I had to revert to my isp's DNS.
powerdoc is offline   Reply With Quote
Old 01-26-09, 07:04 PM   #15
Amor vincit omnia
 
Join Date: Dec 2007
Posts: 2,682
Blog Entries: 4
Rep Power: 4
cool_techie_tvm will become famous soon enough
Default

Quote:
Originally Posted by powerdoc View Post
I know that DNS has no connection with download speed.
But when I tried this while I was downloading a torrent, my speed dropped by about 5 kB/s.
I had to revert to my isp's DNS.
U cannot change the dns settings on the fly. Ofcourse u can change it, but inorder to be implemented it has to be renewed/flushed. For that u need to stop the current data transfers, install the necessary software which facilitates DNS, restart the pc and resume downloading.
cool_techie_tvm is offline   Reply With Quote
Old 01-26-09, 07:10 PM   #16
Silver Member
 
Join Date: Dec 2008
Location: h
Posts: 389
Rep Power: 1
powerdoc is on a distinguished road
Default

I mean I did all that.I think the reliance servers are not so congested coz its relatively new in Mumbai...thats why I might not have noticed any increase in browsing speed as well.
powerdoc is offline   Reply With Quote
Old 10-07-09, 03:24 PM   #17
Bronze Member
 
Sumit020's Avatar
 
Join Date: Aug 2009
Age: 19
Posts: 286
Rep Power: 1
Sumit020 will become famous soon enough
Default

I wanted to ask creating our own dns is better or worse than open dns?
Sumit020 is offline   Reply With Quote
Old 10-11-09, 10:28 AM   #18
Bronze Member
 
Join Date: Sep 2008
Location: Cochin/Bangalore
Age: 26
Posts: 164
Rep Power: 2
SledgeHammer is on a distinguished road
Default

Quote:
Originally Posted by Sumit020 View Post
I wanted to ask creating our own dns is better or worse than open dns?
Creating your own DNS is not recommended unless the number of sites that you want to access can be counted using your fingers !
SledgeHammer is offline   Reply With Quote
Old 10-11-09, 03:31 PM   #19
Bronze Member
 
Sumit020's Avatar
 
Join Date: Aug 2009
Age: 19
Posts: 286
Rep Power: 1
Sumit020 will become famous soon enough
Default

Quote:
Originally Posted by SledgeHammer View Post
Creating your own DNS is not recommended unless the number of sites that you want to access can be counted using your fingers !
Ok... but how do i able to get IP address of site I visiting?
Sumit020 is offline   Reply With Quote
Old 10-11-09, 08:34 PM   #20
Platinum Member
 
just4kix's Avatar
 
Join Date: Dec 2007
Location: Pune
Posts: 8,899
Blog Entries: 6
Rep Power: 19
just4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to beholdjust4kix is a splendid one to behold
Default

Quote:
Originally Posted by Sumit020 View Post
Ok... but how do i able to get IP address of site I visiting?
You can easily get the IP address of the site by the command

ping <site url>

For example
Code:
C:\>ping www.google.com

Pinging www.google.com [209.85.153.104] with 32 bytes of data:
...
...
just4kix is offline   Reply With Quote
Reply

Tags
dns

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 10:32 AM.


India Broadband Forum