DNS caching locally ...

2005-10-07 Thread Kiffin Gish
I understand that it is possible to speed up surfing, especially using a
wireless Internet connection, by using DNS caching locally. This has to
do with enabling the named daemon or something, but I understand that
there are some restrictions.

Is there a simple recipe explaining how to do this?
 
-- 
Kiffin Gish
Gouda, The Netherlands

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS caching locally ...

2005-10-07 Thread Philip Hallstrom

I understand that it is possible to speed up surfing, especially using a
wireless Internet connection, by using DNS caching locally. This has to
do with enabling the named daemon or something, but I understand that
there are some restrictions.

Is there a simple recipe explaining how to do this?


The FreeBSD handbook has an example.  Just skip anything about setting up 
authoritive name servers.


That said, if all you need is caching (ie. you have upstream nameservers 
you can use), I'd suggest dnrd.  It's extremely easy to setup. It's in the 
ports.


http://dnrd.sourceforge.net/

What DNRD is

Domain Name Relay Daemon is a caching, forwarding DNS proxy server. Most 
useful on vpn or dialup firewalls but it is also a nice DNS cache for 
minor networks and workstations.

Features

* Caching of DNS requests.
* Support for backup DNS servers.
* Uses random source port and random query ID's to prevent cache 
poisoning.
* Support for simple routing - specify different forward DNS servers 
for different domains.

* Force authorative or unauthorative answers for specified domains.
* Share the /etc/hosts over the network.
* Support for openbsd, freebsd and linux.
* TCP support
* DNS blacklist support



-philip
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS caching locally ...

2005-10-07 Thread Dan Nelson
In the last episode (Oct 07), Kiffin Gish said:
 I understand that it is possible to speed up surfing, especially
 using a wireless Internet connection, by using DNS caching locally.
 This has to do with enabling the named daemon or something, but I
 understand that there are some restrictions.
 
 Is there a simple recipe explaining how to do this?

Basically, edit /etc/rc.conf and add named_enable=YES, run
/etc/rc.d/named start (you only have to do this if you don't want to
reboot), then edit /etc/resolv.conf and add a nameserver 127.0.0.1
line in front of any nameserver lines you may already have.

If you are behind a firewall that blocks DNS requests except to
specific servers, you may have to edit /etc/namedb/named.conf and
uncomment/edit the forwarders block to tell named to forward requests
to those servers.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS caching locally ...

2005-10-07 Thread Kiffin Gish
On Fri, 2005-10-07 at 12:44 -0500, Dan Nelson wrote:
 In the last episode (Oct 07), Kiffin Gish said:
  I understand that it is possible to speed up surfing, especially
  using a wireless Internet connection, by using DNS caching locally.
  This has to do with enabling the named daemon or something, but I
  understand that there are some restrictions.
  
  Is there a simple recipe explaining how to do this?
 
 Basically, edit /etc/rc.conf and add named_enable=YES, run
 /etc/rc.d/named start (you only have to do this if you don't want to
 reboot), then edit /etc/resolv.conf and add a nameserver 127.0.0.1
 line in front of any nameserver lines you may already have.
 
 If you are behind a firewall that blocks DNS requests except to
 specific servers, you may have to edit /etc/namedb/named.conf and
 uncomment/edit the forwarders block to tell named to forward requests
 to those servers.
 

Yes but isn't this a bit of an overkill when all I want is local dns
caching and nothing else?

-- 
Kiffin Gish
Gouda, The Netherlands

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: DNS caching locally ...

2005-10-07 Thread Bob Middaugh
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Kiffin
Gish
 Sent: Friday, October 07, 2005 2:32 PM
 To: Dan Nelson
 Cc: freebsd-questions@freebsd.org
 Subject: Re: DNS caching locally ...
 
 On Fri, 2005-10-07 at 12:44 -0500, Dan Nelson wrote:
  In the last episode (Oct 07), Kiffin Gish said:
   I understand that it is possible to speed up surfing, especially

   using a wireless Internet connection, by using DNS 
 caching locally.
   This has to do with enabling the named daemon or something, but
I 
   understand that there are some restrictions.
   
   Is there a simple recipe explaining how to do this?
  
  Basically, edit /etc/rc.conf and add named_enable=YES, run 
  /etc/rc.d/named start (you only have to do this if you 
 don't want to 
  reboot), then edit /etc/resolv.conf and add a nameserver
127.0.0.1
  line in front of any nameserver lines you may already have.
  
  If you are behind a firewall that blocks DNS requests except to 
  specific servers, you may have to edit /etc/namedb/named.conf and 
  uncomment/edit the forwarders block to tell named to 
 forward requests 
  to those servers.
  
 
 Yes but isn't this a bit of an overkill when all I want is 
 local dns caching and nothing else?
 
 --
 Kiffin Gish
 Gouda, The Netherlands


Well, you do need a DNS server to do the caching, no?  Are you
referring to the client resolver cache? 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.
html

Bob


 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS caching locally ...

2005-10-07 Thread Dan Nelson
In the last episode (Oct 07), Kiffin Gish said:
 On Fri, 2005-10-07 at 12:44 -0500, Dan Nelson wrote:
  In the last episode (Oct 07), Kiffin Gish said:
   I understand that it is possible to speed up surfing, especially
   using a wireless Internet connection, by using DNS caching
   locally. This has to do with enabling the named daemon or
   something, but I understand that there are some restrictions.
   
   Is there a simple recipe explaining how to do this?
  
  Basically, edit /etc/rc.conf and add named_enable=YES, run
  /etc/rc.d/named start (you only have to do this if you don't want to
  reboot), then edit /etc/resolv.conf and add a nameserver 127.0.0.1
  line in front of any nameserver lines you may already have.
 
 Yes but isn't this a bit of an overkill when all I want is local dns
 caching and nothing else?

Isn't what overkill?  Edit two files and start named; a caching named
isn't going to take up more than a couple MB of memory.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS caching locally ...

2005-10-07 Thread Kiffin Gish
On Fri, 2005-10-07 at 13:56 -0500, Dan Nelson wrote:
 In the last episode (Oct 07), Kiffin Gish said:
  On Fri, 2005-10-07 at 12:44 -0500, Dan Nelson wrote:
   In the last episode (Oct 07), Kiffin Gish said:
I understand that it is possible to speed up surfing, especially
using a wireless Internet connection, by using DNS caching
locally. This has to do with enabling the named daemon or
something, but I understand that there are some restrictions.

Is there a simple recipe explaining how to do this?
   
   Basically, edit /etc/rc.conf and add named_enable=YES, run
   /etc/rc.d/named start (you only have to do this if you don't want to
   reboot), then edit /etc/resolv.conf and add a nameserver 127.0.0.1
   line in front of any nameserver lines you may already have.
  
  Yes but isn't this a bit of an overkill when all I want is local dns
  caching and nothing else?
 
 Isn't what overkill?  Edit two files and start named; a caching named
 isn't going to take up more than a couple MB of memory.
 

All right then I'll give it a go, thanks.

-- 
Kiffin Gish
Gouda, The Netherlands

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]