Even better : Slackware ships with Bind that's preconfigured as a caching nameserver. Here's what you can try.
Edit /etc/named.conf and add the primary and secondary nameservers you want to use:
Code:
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forwarders {
62.4.16.70;
62.4.17.69;
};
};
Activate and start Bind:
Code:
# chmod 0755 /etc/rc.d/rc.bind
# /etc/rc.d/rc.bind start
Now edit /etc/resolv.conf to use your local caching nameserver:
Code:
nameserver 127.0.0.1
To see how well this works, try 'dig' on any website, for example:
Code:
$ dig microlinux.fr
This will give you the lookup time for your query. Say, 60 ms.
Now repeat the query, and you'll see it went down to 1 ms.
Have fun!