Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 09:51
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to: Speedup DNS Resolving
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

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

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
View user's profile Send private message 
Hacao


Joined: 10 Aug 2005
Posts: 225
Location: Saigon, Vietnam

PostPosted: Tue 26 Dec 2006, 02:06    Post subject: Thanks  

Oh !

Very good Smile

Thanks,

_________________
Hacao Linux 2009 CE released !

Hacao.com English & Vietnamese !
Back to top
View user's profile Send private message Visit poster's website 
ARAN

Joined: 21 Oct 2005
Posts: 113

PostPosted: 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
View user's profile Send private message 
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

PostPosted: 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
View user's profile Send private message 
ARAN

Joined: 21 Oct 2005
Posts: 113

PostPosted: 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
View user's profile Send private message 
Wolf Pup

Joined: 27 Apr 2006
Posts: 637

PostPosted: 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
View user's profile Send private message 
ARAN

Joined: 21 Oct 2005
Posts: 113

PostPosted: 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
View user's profile Send private message 
Cobrag0318

Joined: 16 Apr 2009
Posts: 18

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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
[ Time: 0.0799s ][ Queries: 12 (0.0089s) ][ GZIP on ]