Page 1 of 1

How to: Speedup DNS Resolving

Posted: Tue 26 Dec 2006, 02:16
by Wolf Pup
This will help speed up web browsing, email, chat, online games, etc... This can also be usefull if you have an ISP with slow or faulty DNS Servers.

1. Go to http://www.maradns.org/ and download a stable release of MaraDNS
2. Open with xarchive and extract all to /

3. Open a terminal RXVT, then type:

Code: Select all

     cd /
     chmod 777 /install/doinst.sh
     /install/doinst.sh
4 Go to /etc/rc.d, right click "rc.local" then click "Open as Text", then add the following to an empty blank line: (Save after adding the text)

Code: Select all

     /etc/rc.d/rc.maradns start
     /etc/ppp/ip-up
5. Go to /etc/ppp, then right click an empty space, click on "new" then click "script", name it "ip-up", then click OK.

6. Right Click "ip-up", then click "Open as Text", then add the following: (Save after adding the text)

Code: Select all

     # Updates DNS servers
     echo "nameserver 127.0.0.1" > /etc/resolv.conf
7. Go to /etc, then right click an empty space, then select "new" then click "blank file", name it "mararc"

8. Right Click "mararc", then click "Open as Text", then add the following:

Code: Select all

hide_disclaimer = "YES"
maximum_cache_elements = "1536"
# -------
ipv4_bind_addresses = "127.0.0.1"
chroot_dir = "/etc/maradns"
recursive_acl = "127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 169.254.0.0/16, 192.168.0.0/16"
min_visible_ttl = 14400
min_ttl = 14400
# -------
random_seed_file = "/dev/urandom"
min_ttl_cname = 14400
maxprocs = 96
# -------
9. Restart Puppy, then it should start caching DNS requests.


Hopefully this guide is easy to understand. :)

or

use the .PET package below for puppy
Link to MaraDNS for Puppy

Thanks

Posted: Tue 26 Dec 2006, 06:06
by Hacao
Oh !

Very good :)

Thanks,

Posted: Thu 28 Dec 2006, 22:53
by ARAN
Hello Wolfpup !

I have some problems to setup and running this very promissing Programm on Puppy Linux!

I am not 100% sure but it looks like your Howto for running "maradns" is not 100% complete.

If i make everything like in your Howto reboot then Puppy Linux and start the "Top Procces Viewer" in Puppy Linux to prove if "maradns" is working on Puppy Linux as a running Process then i cant see it on the list of the running Programms.

When i open the terminal in Puppy Linux and type the command
"duende maradns" for starting "maradns" as a daemon a get the error message
# Fatal error logging; read syslog
/etc/maradns/logger directory required to exist
It looks like maradns need a logging directory to work properly !

What at the moment also i can't prove is
if "maradns" really cashe the dns request of my Webbrowser.

Can somebody please tell me where is the location of the maradns cashfile so i can prove the DNS-Request.

Thanks a lot in advance ARAN.

Posted: Fri 29 Dec 2006, 01:54
by Wolf Pup
The download link to the program already has that logging folder needed for MaraDNS to start. Did you extract the program to /

If it still doesent start, then create the folders to the logger /etc/maradns/logger

If MaraDNS Starts without error then it'll show on top viewer.

One way of testing DNS Caching is to open a terminal and type (Close all programs using the internet)

Code: Select all

nslookup www.google.com
The first try there will be network activity, but on the second try, there will be none, these means that the program got its DNS request from the cache. Testing it on nslookup on the second try should be much faster than on the first.

oh, one thing, I've updated the mararc file, be sure to copy the new changes.

Posted: Fri 29 Dec 2006, 16:52
by ARAN
Hello Wolfpup
Wolf Pup wrote:Did you extract the program to /
Yes i have extracted the package to "/".
The interessting thing was that after the extract of the package i had a folder like
"/install/doinst.sh".
But after i have rebooted puppy linux the previous folder "/install/..." has disepeared.

I am booting Puppy Linux with the livecd and i dont know if some of the Files and folders
which i need to run "maradns" have been deleted after the reboot.

Do you run PuppyLinux also in LiveCD modus or do you work on a hard disk installed Puppy Linux?
Wolf Pup wrote:If MaraDNS Starts without error then it'll show on top viewer.
The Top process Viewer dont show me any entrys for the programm "maradns"
The KP proccess Manager however show me one time "maradns" and two time "duende maradns" as a running proccess when i reboot puppy Linux after i have maked the Logging directory in "etc". So with a logging directory puppy linux start at least some maradns processes.
It looks like that at least the "logging" directory was deleted after the reboot.
Wolf Pup wrote:One way of testing DNS Caching is to open a terminal and type (Close all programs using the internet)

Code: Select all

nslookup www.google.com
The first try there will be network activity, but on the second try, there will be none, these means that the program got its DNS request from the cache. Testing it on nslookup on the second try should be much faster than on the first.
nslookup works great but cashing dont will work.
after the first nslookup i have unpluged the Ethernet Cable from my Laptop and run once again the command "nslookup" to see if i get now the cashed DNS-querys.
Now "nslookup" hangs without to give any result.

Thanks till yet for your Help and your hard work.
Greetings Aran.

Posted: Fri 29 Dec 2006, 17:22
by Wolf Pup
Do you run PuppyLinux also in LiveCD modus or do you work on a hard disk installed Puppy Linux?
I run puppy 2.12 frugal install. If your using the LiveCD without saving, then run

Code: Select all

duende maradns
/etc/ppp/ip-up
dont restart if your not saving.

One thing i noticed about MaraDNS is that if one installs before saving, then it'll say something about a missing folder, i forgot which.

Posted: Sat 30 Dec 2006, 17:00
by ARAN
Helo Wolfpup

Thanks a lot for your helpfull answers.

Now MARADNS works and boot on my Puppy without any problems.

You have done with this Howto a great job.
Surfing on the Internet is now for me amazing fast.

You get from me for this great Howto 10 from 10 Points.

Thanks a lot.
Greetings ARAN

Posted: Tue 28 Apr 2009, 06:35
by Cobrag0318
Question is, if this program is even valid anymore, is it more advantageous to use this utility on a machine running only 64MB of ram? Or would any speed gained by the utility be outweighted by the memory usage on such a small system?