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