Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: Your own DNS

  1. #1
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,899

    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 Attached Files
    *** Never argue with an idiot. ***

    All my useful articles and Guides | My Movie Collection | My Blogs
    -------------------------------------------------------------------------------------------

  2. #2
    newprouser
    Guest

    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 ?

  3. #3
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,899

    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.

  4. #4
    Silver Member
    Join Date
    Nov 2008
    Age
    26
    Liked
    0 times
    Posts
    338

    Default

    yes, as just4kix said, even though there are many servers for a website, it has the same ip address.

  5. #5
    Junior Member
    Join Date
    Jun 2008
    Age
    26
    Liked
    0 times
    Posts
    33

    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 :glare:

  6. #6
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,899

    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 :glare:
    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.

  7. #7
    Bronze Member
    Join Date
    Jan 2009
    Age
    21
    Liked
    0 times
    Posts
    164

    Default

    Trying it out right now....

  8. #8
    Bronze Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    108

    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.

  9. #9
    Amor vincit omnia
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    3,022

    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.

  10. #10
    Gold Member
    Join Date
    Apr 2007
    Liked
    0 times
    Posts
    772

    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

  11. #11
    Amor vincit omnia
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    3,022

    Default

    Treewalk DNS supports DNS updation too !!

    BIND is an excellent option for linux.

  12. #12
    Junior Member
    Join Date
    Oct 2008
    Age
    23
    Liked
    0 times
    Posts
    26

    Default

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

    will it speed up connections or what?

    can u explain bro?

  13. #13
    Amor vincit omnia
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    3,022

    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

  14. #14
    Silver Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    387

    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.

  15. #15
    Amor vincit omnia
    Join Date
    Dec 2007
    Liked
    3 times
    Posts
    3,022

    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.

  16. #16
    Silver Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    387

    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.

  17. #17
    Gold Member
    Join Date
    Aug 2009
    Age
    21
    Liked
    0 times
    Posts
    534

    Default

    I wanted to ask creating our own dns is better or worse than open dns?

  18. #18
    Bronze Member
    Join Date
    Sep 2008
    Liked
    0 times
    Posts
    268

    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 !

  19. #19
    Gold Member
    Join Date
    Aug 2009
    Age
    21
    Liked
    0 times
    Posts
    534

    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?

  20. #20
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,899

    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:
    ...
    ...

  21. #21
    The Master imrock's Avatar
    Join Date
    Sep 2008
    Liked
    0 times
    Posts
    2,200

    Default

    good one j4k.

    thanks.this will help many.

  22. #22
    Gold Member
    Join Date
    Aug 2009
    Age
    21
    Liked
    0 times
    Posts
    534

    Default

    Quote Originally Posted by just4kix View Post
    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:
    ...
    ...
    Really helpful tip j4k, thank you....

  23. #23
    The Wizard meetdilip's Avatar
    Join Date
    Aug 2009
    Liked
    0 times
    Posts
    8,563

    Default

    Interesting. Thanks for the share.

  24. #24
    Junior Member
    Join Date
    May 2010
    Liked
    0 times
    Posts
    2

    Exclamation

    Quote Originally Posted by just4kix View Post
    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.
    Downloading the file & editing with some more sites which i browse will open the website or will block the website as am using some other program to block some websites

  25. #25
    Guardian Angel just4kix's Avatar
    Join Date
    Dec 2007
    Liked
    4 times
    Posts
    10,899

    Default

    Quote Originally Posted by notteeking View Post
    Downloading the file & editing with some more sites which i browse will open the website or will block the website as am using some other program to block some websites
    This process will neither open or block the website.

    But just in case the real IP address of the website changes, then you may get "404" message.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. BSNL DNS Servers Configuration
    By fernac0a in forum BSNL broadband
    Replies: 30
    Last Post: 01-29-11, 12:06 AM
  2. Two Broadband connection in one lan
    By avinanrey in forum BSNL broadband
    Replies: 17
    Last Post: 04-22-10, 11:38 AM
  3. Choosing the best & fastest DNS server for oneself & summary of dns
    By Luke Skywalker in forum Broadband How to
    Replies: 4
    Last Post: 02-21-10, 07:38 AM
  4. How to Setup Google Public DNS in Windows
    By Preeti_20 in forum Windows
    Replies: 2
    Last Post: 02-11-10, 01:36 AM
  5. How DNS Work
    By deepmohan in forum Broadband How to
    Replies: 5
    Last Post: 02-05-10, 10:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •