Bv9ARM.ch05.html revision d6fa26d0adaec6c910115be34fe7a5a5f402c14f
0N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
0N/A<!--
0N/A - Copyright (C) 2000-2015 Internet Systems Consortium, Inc. ("ISC")
0N/A -
0N/A - This Source Code Form is subject to the terms of the Mozilla Public
0N/A - License, v. 2.0. If a copy of the MPL was not distributed with this
0N/A - file, You can obtain one at http://mozilla.org/MPL/2.0/.
0N/A-->
0N/A<html lang="en">
0N/A<head>
0N/A<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
0N/A<title>Chapter�5.�The BIND 9 Lightweight Resolver</title>
0N/A<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
0N/A<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
0N/A<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
0N/A<link rel="prev" href="Bv9ARM.ch04.html" title="Chapter�4.�Advanced DNS Features">
0N/A<link rel="next" href="Bv9ARM.ch06.html" title="Chapter�6.�BIND 9 Configuration Reference">
0N/A</head>
0N/A<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
0N/A<div class="navheader">
0N/A<table width="100%" summary="Navigation header">
0N/A<tr><th colspan="3" align="center">Chapter�5.�The <acronym class="acronym">BIND</acronym> 9 Lightweight Resolver</th></tr>
0N/A<tr>
0N/A<td width="20%" align="left">
0N/A<a accesskey="p" href="Bv9ARM.ch04.html">Prev</a>�</td>
0N/A<th width="60%" align="center">�</th>
0N/A<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch06.html">Next</a>
0N/A</td>
0N/A</tr>
0N/A</table>
58N/A<hr>
0N/A</div>
0N/A<div class="chapter">
0N/A<div class="titlepage"><div><div><h1 class="title">
0N/A<a name="Bv9ARM.ch05"></a>Chapter�5.�The <acronym class="acronym">BIND</acronym> 9 Lightweight Resolver</h1></div></div></div>
0N/A<div class="toc">
0N/A<p><b>Table of Contents</b></p>
0N/A<dl class="toc">
0N/A<dt><span class="section"><a href="Bv9ARM.ch05.html#lightweight_resolver">The Lightweight Resolver Library</a></span></dt>
58N/A<dt><span class="section"><a href="Bv9ARM.ch05.html#lwresd">Running a Resolver Daemon</a></span></dt>
99N/A</dl>
99N/A</div>
99N/A<div class="section">
0N/A<div class="titlepage"><div><div><h2 class="title" style="clear: both">
0N/A<a name="lightweight_resolver"></a>The Lightweight Resolver Library</h2></div></div></div>
0N/A<p>
0N/A Traditionally applications have been linked with a stub resolver
0N/A library that sends recursive DNS queries to a local caching name
0N/A server.
0N/A </p>
0N/A<p>
0N/A IPv6 once introduced new complexity into the resolution process,
0N/A such as following A6 chains and DNAME records, and simultaneous
0N/A lookup of IPv4 and IPv6 addresses. Though most of the complexity was
0N/A then removed, these are hard or impossible
58N/A to implement in a traditional stub resolver.
58N/A </p>
58N/A<p>
58N/A <acronym class="acronym">BIND</acronym> 9 therefore can also provide resolution
98N/A services to local clients
98N/A using a combination of a lightweight resolver library and a resolver
98N/A daemon process running on the local host. These communicate using
98N/A a simple UDP-based protocol, the "lightweight resolver protocol"
98N/A that is distinct from and simpler than the full DNS protocol.
98N/A </p>
98N/A</div>
98N/A<div class="section">
98N/A<div class="titlepage"><div><div><h2 class="title" style="clear: both">
98N/A<a name="lwresd"></a>Running a Resolver Daemon</h2></div></div></div>
98N/A<p>
98N/A To use the lightweight resolver interface, the system must
98N/A run the resolver daemon <span class="command"><strong>lwresd</strong></span> or a
98N/A local
98N/A name server configured with a <span class="command"><strong>lwres</strong></span>
98N/A statement.
98N/A </p>
98N/A<p>
98N/A By default, applications using the lightweight resolver library will
98N/A make
98N/A UDP requests to the IPv4 loopback address (127.0.0.1) on port 921.
98N/A The
98N/A address can be overridden by <span class="command"><strong>lwserver</strong></span>
98N/A lines in
98N/A <code class="filename">/etc/resolv.conf</code>.
98N/A </p>
98N/A<p>
98N/A The daemon currently only looks in the DNS, but in the future
98N/A it may use other sources such as <code class="filename">/etc/hosts</code>,
98N/A NIS, etc.
58N/A </p>
0N/A<p>
0N/A The <span class="command"><strong>lwresd</strong></span> daemon is essentially a
0N/A caching-only name server that responds to requests using the
0N/A lightweight
0N/A resolver protocol rather than the DNS protocol. Because it needs
0N/A to run on each host, it is designed to require no or minimal
0N/A configuration.
0N/A Unless configured otherwise, it uses the name servers listed on
73N/A <span class="command"><strong>nameserver</strong></span> lines in <code class="filename">/etc/resolv.conf</code>
0N/A as forwarders, but is also capable of doing the resolution
0N/A autonomously if
0N/A none are specified.
0N/A </p>
0N/A<p>
0N/A The <span class="command"><strong>lwresd</strong></span> daemon may also be
0N/A configured with a
0N/A <code class="filename">named.conf</code> style configuration file,
0N/A in
0N/A <code class="filename">/etc/lwresd.conf</code> by default. A name
0N/A server may also
0N/A be configured to act as a lightweight resolver daemon using the
0N/A <span class="command"><strong>lwres</strong></span> statement in <code class="filename">named.conf</code>.
0N/A </p>
58N/A<p>
0N/A The number of client queries that the <span class="command"><strong>lwresd</strong></span>
0N/A daemon is able to serve can be set using the
0N/A <code class="option">lwres-tasks</code> and <code class="option">lwres-clients</code>
0N/A statements in the configuration.
0N/A </p>
0N/A</div>
0N/A</div>
0N/A<div class="navfooter">
0N/A<hr>
0N/A<table width="100%" summary="Navigation footer">
0N/A<tr>
0N/A<td width="40%" align="left">
0N/A<a accesskey="p" href="Bv9ARM.ch04.html">Prev</a>�</td>
0N/A<td width="20%" align="center">�</td>
0N/A<td width="40%" align="right">�<a accesskey="n" href="Bv9ARM.ch06.html">Next</a>
0N/A</td>
0N/A</tr>
58N/A<tr>
58N/A<td width="40%" align="left" valign="top">Chapter�4.�Advanced DNS Features�</td>
58N/A<td width="20%" align="center"><a accesskey="h" href="Bv9ARM.html">Home</a></td>
58N/A<td width="40%" align="right" valign="top">�Chapter�6.�<acronym class="acronym">BIND</acronym> 9 Configuration Reference</td>
58N/A</tr>
58N/A</table>
58N/A</div>
58N/A<p xmlns:db="http://docbook.org/ns/docbook" style="text-align: center;">BIND 9.11.0rc1</p>
58N/A</body>
58N/A</html>
58N/A