Bv9ARM.5.html revision 15a44745412679c30a6d022733925af70a38b715
10139N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML EXPERIMENTAL 970324//EN">
10139N/A<!--
10139N/A - Copyright (C) 2000 Internet Software Consortium.
12225N/A -
10139N/A - Permission to use, copy, modify, and distribute this software for any
10139N/A - purpose with or without fee is hereby granted, provided that the above
10139N/A - copyright notice and this permission notice appear in all copies.
17244N/A -
10139N/A - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
18593N/A - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
18603N/A - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
18593N/A - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
10139N/A - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
10139N/A - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
10139N/A - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
18544N/A - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
10139N/A-->
10139N/A
18593N/A<!-- $Id: Bv9ARM.5.html,v 1.9 2000/07/27 09:41:55 tale Exp $ -->
10139N/A
18544N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML EXPERIMENTAL 970324//EN">
12773N/A<HTML>
12773N/A<HEAD>
12773N/A<META NAME="GENERATOR" CONTENT="Adobe FrameMaker 5.5/HTML Export Filter">
13969N/A<LINK REL="STYLESHEET" HREF="Bv9ARM.css">
11340N/A<TITLE> Section 5. The BIND 9 Lightweight Resolver</TITLE></HEAD>
12225N/A<BODY BGCOLOR="#ffffff">
13845N/A<OL>
13969N/A<H1 CLASS="1Level">
13845N/A<A NAME="pgfId=1001240">
10139N/A</A>
13845N/ASection 5. <A NAME="22731">
13969N/A</A>
13845N/AThe BIND&nbsp;9 Lightweight Resolver</H1>
14187N/A</OL>
14187N/A<DIV>
17244N/A<OL>
17244N/A<H3 CLASS="2Level">
10139N/A<A NAME="pgfId=1001241">
10139N/A</A>
10139N/A5.1 The Lightweight Resolver Library</H3>
10139N/A</OL>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001242">
10139N/A</A>
10139N/ATraditionally applications have been linked with a stub resolver library that sends recursive DNS queries to a local caching name server.</P>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001243">
10139N/A</A>
10139N/AIPv6 introduces new complexity into the resolution process, such as following A6 chains and DNAME records, and simultaneous lookup of IPv4 and IPv6 addresses. These are hard or impossible to implement in a traditional stub resolver.</P>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001244">
10139N/A</A>
10139N/AInstead, BIND&nbsp;9 provides 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 &quot;lightweight resolver protocol&quot; that is distinct from and simpler than the full DNS protocol.</P>
10139N/A</DIV>
10139N/A<DIV>
10139N/A<OL>
10139N/A<H3 CLASS="2Level">
10139N/A<A NAME="pgfId=1001245">
10139N/A</A>
10139N/A5.2 Running a Resolver Daemon</H3>
10139N/A</OL>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001246">
10139N/A</A>
10139N/ATo use the lightweight resolver interface, the system must run the resolver daemon <CODE CLASS="Program-Process">
10139N/Alwresd</CODE>
10139N/A.</P>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001247">
10139N/A</A>
10139N/AApplications using the lightweight resolver library will make UDP requests to the IPv4 loopback address (127.0.0.1) on port 921. The daemon will try to find the answer to the questions &quot;what are the addresses for host <EM CLASS="URL">
10139N/Afoo.example.com</EM>
10139N/A?&quot; and &quot;what are the names for IPv4 address 204.152.184.79?&quot;</P>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001248">
10139N/A</A>
10139N/AThe daemon currently only looks in the DNS, but in the future it may use other sources such as <EM CLASS="grammar_literal">
10139N/A/etc/hosts</EM>
10139N/A, NIS, etc.</P>
10139N/A<P CLASS="2LevelContinued">
10139N/A<A NAME="pgfId=1001249">
10139N/A</A>
10139N/AThe <CODE CLASS="Program-Process">
10139N/Alwresd</CODE>
10139N/A daemon is essentially a stripped-down, caching-only name server that answers requests using the lightweight resolver protocol rather than the DNS protocol. Because it needs to run on each host, it is designed to require no or minimal configuration. It uses the name servers listed on <CODE CLASS="Program-Process">
10139N/Anameserver</CODE>
12356N/A lines in <EM CLASS="pathname">
10139N/A/etc/resolv.conf</EM>
12356N/A as forwarders, but is also capable of doing the resolution autonomously if none are specified.</P>
12356N/A</DIV>
12356N/A<HR ALIGN="center">
13845N/A<p>Return to <A href="Bv9ARM.html">BIND 9 Administrator Reference Manual</A> table of contents.</p>
13368N/A
10139N/A</BODY>
13368N/A</HTML>
14187N/A