57 lines
2.0 KiB
HTML
57 lines
2.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>DNS HOWTO : Forwarding</TITLE>
|
|
<LINK HREF="DNS-HOWTO-5.html" REL=next>
|
|
<LINK HREF="DNS-HOWTO-3.html" REL=previous>
|
|
<LINK HREF="DNS-HOWTO.html#toc4" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="DNS-HOWTO-5.html">Next</A>
|
|
<A HREF="DNS-HOWTO-3.html">Previous</A>
|
|
<A HREF="DNS-HOWTO.html#toc4">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s4">4. Forwarding</A></H2>
|
|
|
|
<P>In large, well organized, academic or ISP (Internet Service
|
|
Provider) networks you will sometimes find that the network people
|
|
have set up a forwarder hierarchy of DNS servers which helps lighten
|
|
the internal network load and the load on the outside servers as well.
|
|
It's not easy to know if you're inside such a network or not. But by
|
|
using the DNS server of your network provider as a ``forwarder'' you
|
|
can make the responses to queries faster and less of a load on your
|
|
network. This works by your nameserver forwarding queries to your ISP
|
|
nameserver. Each time this happens you will dip into the big cache of
|
|
your ISPs nameserver, thus speeding your queries up, your nameserver
|
|
does not have to do all the work itself. If you use a modem this can
|
|
be quite a win. For the sake of this example we assume that your
|
|
network provider has two name servers they want you to use, with IP
|
|
numbers <CODE>10.0.0.1</CODE> and <CODE>10.1.0.1</CODE>. Then, in your
|
|
<CODE>named.conf</CODE> file, inside the opening section called
|
|
``<CODE>options</CODE>'', insert these lines:
|
|
<P>
|
|
<HR>
|
|
<PRE>
|
|
forward first;
|
|
forwarders {
|
|
10.0.0.1;
|
|
10.1.0.1;
|
|
};
|
|
</PRE>
|
|
<HR>
|
|
<P>
|
|
<P>There is also a nice trick for dialup machines using forwarders, it
|
|
is described in the
|
|
<A HREF="DNS-HOWTO-10.html#qanda">qanda</A> section.
|
|
<P>
|
|
<P>Restart your nameserver and test it with <CODE>dig</CODE>. Should still
|
|
work fine.
|
|
<P>
|
|
<HR>
|
|
<A HREF="DNS-HOWTO-5.html">Next</A>
|
|
<A HREF="DNS-HOWTO-3.html">Previous</A>
|
|
<A HREF="DNS-HOWTO.html#toc4">Contents</A>
|
|
</BODY>
|
|
</HTML>
|