Bv9ARM.ch05.html revision 75c0816e8295e180f4bc7f10db3d0d880383bc1c
325N/A<!--
325N/A - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
325N/A - Copyright (C) 2000-2003 Internet Software Consortium.
325N/A -
325N/A - Permission to use, copy, modify, and distribute this software for any
325N/A - purpose with or without fee is hereby granted, provided that the above
325N/A - copyright notice and this permission notice appear in all copies.
325N/A -
325N/A - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
325N/A - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
325N/A - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
325N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
325N/A - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
325N/A - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
325N/A - PERFORMANCE OF THIS SOFTWARE.
325N/A-->
325N/A<!-- $Id: Bv9ARM.ch05.html,v 1.42 2005/05/13 03:14:09 marka Exp $ -->
325N/A<html>
325N/A<head>
325N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
325N/A<title>Chapter�5.�The BIND 9 Lightweight Resolver</title>
325N/A<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
325N/A<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
325N/A<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
325N/A<link rel="prev" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
325N/A<link rel="next" href="Bv9ARM.ch06.html" title="Chapter�6.�BIND 9 Configuration Reference">
325N/A</head>
325N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
325N/A<div class="navheader">
325N/A<table width="100%" summary="Navigation header">
325N/A<tr><th colspan="3" align="center">Chapter�5.�The <span class="acronym">BIND</span> 9 Lightweight Resolver</th></tr>
325N/A<tr>
325N/A<td width="20%" align="left">
325N/A<a accesskey="p" href="Bv9ARM.ch04.html">Prev</a>�</td>
325N/A<th width="60%" align="center">�</th>
325N/A<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch06.html">Next</a>
325N/A</td>
325N/A</tr>
325N/A</table>
325N/A<hr>
325N/A</div>
325N/A<div class="chapter" lang="en">
325N/A<div class="titlepage"><div><div><h2 class="title">
325N/A<a name="Bv9ARM.ch05"></a>Chapter�5.�The <span class="acronym">BIND</span> 9 Lightweight Resolver</h2></div></div></div>
325N/A<div class="toc">
325N/A<p><b>Table of Contents</b></p>
325N/A<dl>
325N/A<dt><span class="sect1"><a href="Bv9ARM.ch05.html#id2541418">The Lightweight Resolver Library</a></span></dt>
325N/A<dt><span class="sect1"><a href="Bv9ARM.ch05.html#lwresd">Running a Resolver Daemon</a></span></dt>
325N/A</dl>
325N/A</div>
325N/A<div class="sect1" lang="en">
325N/A<div class="titlepage"><div><div><h2 class="title" style="clear: both">
325N/A<a name="id2541418"></a>The Lightweight Resolver Library</h2></div></div></div>
325N/A<p>
325N/A Traditionally applications have been linked with a stub resolver
325N/A library that sends recursive DNS queries to a local caching name
325N/A server.
325N/A </p>
325N/A<p>
325N/A IPv6 once introduced new complexity into the resolution process,
325N/A such as following A6 chains and DNAME records, and simultaneous
325N/A lookup of IPv4 and IPv6 addresses. Though most of the complexity was
325N/A then removed, these are hard or impossible
325N/A to implement in a traditional stub resolver.
325N/A </p>
325N/A<p>
325N/A Instead, <span class="acronym">BIND</span> 9 provides resolution
325N/A services to local clients
325N/A using a combination of a lightweight resolver library and a resolver
325N/A daemon process running on the local host. These communicate using
325N/A a simple UDP-based protocol, the "lightweight resolver protocol"
325N/A that is distinct from and simpler than the full DNS protocol.
325N/A </p>
325N/A</div>
325N/A<div class="sect1" lang="en">
325N/A<div class="titlepage"><div><div><h2 class="title" style="clear: both">
325N/A<a name="lwresd"></a>Running a Resolver Daemon</h2></div></div></div>
325N/A<p>
325N/A To use the lightweight resolver interface, the system must
325N/A run the resolver daemon <span><strong class="command">lwresd</strong></span> or a
325N/A local
325N/A name server configured with a <span><strong class="command">lwres</strong></span>
325N/A statement.
325N/A </p>
325N/A<p>
325N/A By default, applications using the lightweight resolver library will
325N/A make
325N/A UDP requests to the IPv4 loopback address (127.0.0.1) on port 921.
325N/A The
325N/A address can be overridden by <span><strong class="command">lwserver</strong></span>
325N/A lines in
325N/A <code class="filename">/etc/resolv.conf</code>.
325N/A </p>
325N/A<p>
325N/A The daemon currently only looks in the DNS, but in the future
325N/A it may use other sources such as <code class="filename">/etc/hosts</code>,
325N/A NIS, etc.
325N/A </p>
325N/A<p>
325N/A The <span><strong class="command">lwresd</strong></span> daemon is essentially a
325N/A caching-only name server that responds to requests using the
325N/A lightweight
325N/A resolver protocol rather than the DNS protocol. Because it needs
325N/A to run on each host, it is designed to require no or minimal
325N/A configuration.
325N/A Unless configured otherwise, it uses the name servers listed on
325N/A <span><strong class="command">nameserver</strong></span> lines in <code class="filename">/etc/resolv.conf</code>
325N/A as forwarders, but is also capable of doing the resolution
325N/A autonomously if
325N/A none are specified.
325N/A </p>
325N/A<p>
325N/A The <span><strong class="command">lwresd</strong></span> daemon may also be
325N/A configured with a
325N/A <code class="filename">named.conf</code> style configuration file,
325N/A in
325N/A <code class="filename">/etc/lwresd.conf</code> by default. A name
325N/A server may also
325N/A be configured to act as a lightweight resolver daemon using the
325N/A <span><strong class="command">lwres</strong></span> statement in <code class="filename">named.conf</code>.
325N/A </p>
325N/A</div>
325N/A</div>
325N/A<div class="navfooter">
325N/A<hr>
325N/A<table width="100%" summary="Navigation footer">
325N/A<tr>
325N/A<td width="40%" align="left">
325N/A<a accesskey="p" href="Bv9ARM.ch04.html">Prev</a>�</td>
325N/A<td width="20%" align="center">�</td>
325N/A<td width="40%" align="right">�<a accesskey="n" href="Bv9ARM.ch06.html">Next</a>
325N/A</td>
325N/A</tr>
325N/A<tr>
325N/A<td width="40%" align="left" valign="top">Chapter�4.�Advanced DNS Features�</td>
325N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
325N/A<td width="40%" align="right" valign="top">�Chapter�6.�<span class="acronym">BIND</span> 9 Configuration Reference</td>
325N/A</tr>
325N/A</table>
325N/A</div>
325N/A</body>
325N/A</html>
325N/A