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 too).
So I can see the IP. (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 that:
IP Tab (or Space) Domain Domain(without www. as I would like it work without www. too)
Examples:
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 or Tab (u 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.
For this in between I found a simple way:
I just ping the website as su, stop it by ctrl+c if I see the IP.
Then I type: echo 123.456.78.9 www.anysite anysite
/etc/hosts (IP and hostname are fakes here)
and by linux-magic this is the last line in my /etc/hosts.
Good results for that little effort.
:de:
TempoFuerModems