The time now is Sun 26 May 2013, 02:19
All times are UTC - 4 |
| Author |
Message |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Mon 25 Dec 2006, 22:16 Post subject:
How to: Speedup DNS Resolving Subject description: DNS Cache |
|
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: |
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: | /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: | # 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: | 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
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
Last edited by Wolf Pup on Tue 03 Feb 2009, 22:20; edited 30 times in total
|
|
Back to top
|
|
 |
Hacao

Joined: 10 Aug 2005 Posts: 225 Location: Saigon, Vietnam
|
Posted: Tue 26 Dec 2006, 02:06 Post subject:
Thanks |
|
Oh !
Very good
Thanks,
_________________ Hacao Linux 2009 CE released !
Hacao.com English & Vietnamese !
|
|
Back to top
|
|
 |
ARAN
Joined: 21 Oct 2005 Posts: 112
|
Posted: Thu 28 Dec 2006, 18:53 Post subject:
|
|
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
| Quote: | # 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.
|
|
Back to top
|
|
 |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Thu 28 Dec 2006, 21:54 Post subject:
|
|
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: | | 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.
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
|
|
Back to top
|
|
 |
ARAN
Joined: 21 Oct 2005 Posts: 112
|
Posted: Fri 29 Dec 2006, 12:52 Post subject:
|
|
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: | | 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.
|
|
Back to top
|
|
 |
Wolf Pup
Joined: 27 Apr 2006 Posts: 637
|
Posted: Fri 29 Dec 2006, 13:22 Post subject:
|
|
| Quote: | | 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: | 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.
_________________
Visit The Repository - Helpful and hard-to-find treats for Puppy 3.
Click Here for Puppy Support Chat, + Helpful Links.
|
|
Back to top
|
|
 |
ARAN
Joined: 21 Oct 2005 Posts: 112
|
Posted: Sat 30 Dec 2006, 13:00 Post subject:
|
|
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
|
|
Back to top
|
|
 |
Cobrag0318
Joined: 16 Apr 2009 Posts: 18
|
Posted: Tue 28 Apr 2009, 02:35 Post subject:
|
|
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?
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|