18.04.2014, 11:47 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Improved Speed for DNS


I've got an incredibly slow 56k modem-connection. If I already download and wish to visit a website, the search for the host takes so long, that it would not be found in time and so i don't get a connection.

Thinking about making my own DNS-server I was reminded of the /etc/hosts.
What's in there is looked up first before a DNS-server is asked for an IP.

So I did this:
I pinged all my favourites (and the debian servers of my /etc/apt/sources.list, also).
So I can see the IP numbers. (for example ping www.google.com)

I copied them all to my /etc/hosts (as su, otherwise it would not be saveable)

It looks like this:
IP Tab (or Space) Domain Domain (without www, in order for it to work without www.)
For example:
216.239.53.99     www.google.com google.com 
62.27.12.212 www.mipooh.net mipooh.net
81.209.188.68 www.kanotix.com kanotix.com
213.198.19.91 www.knopper.net knopper.net 
-> Simply all notations of a domain separated by space(s) or tab (you can use fakes too).

Now if I type one of my favourite websites I am connected immediately. The searching for the host is not necessary for all my listed domains. And if I have new favourites I just add them to /etc/hosts.

And for this, I found a simple way to add new URLs:
// I just ping the website as su, 
$ su - 
# ping www.anysite.dom 
PING (123.456.78.9 anysite.dom 
// stop it by ctrl+c if I see the IP.
// Then I type: 
# echo 123.456.78.9 www.anysite.dom anysite.dom >> /etc/hosts 
// (IP and hostname are fakes here)
// and by linux-magic this is appended as the last line in my /etc/hosts file. 
Good results for very little effort.

:de: TempoFuerModems
XML Revisions of $tag
Seiten-History :: Letzter Editor : Richard :: Eigentümer : DerEinzigWahreMipooh ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.