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