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