Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2005 12:44:42 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Kiffin Gish <kiffin@gish.demon.nl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: DNS caching locally ...
Message-ID:  <20051007174442.GC44754@dan.emsphone.com>
In-Reply-To: <1128705415.693.11.camel@localhost>
References:  <1128705415.693.11.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051007174442.GC44754>