Bv9ARM.5.html revision 15a44745412679c30a6d022733925af70a38b715
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML EXPERIMENTAL 970324//EN">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<!--
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - Copyright (C) 2000 Internet Software Consortium.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - Permission to use, copy, modify, and distribute this software for any
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - purpose with or without fee is hereby granted, provided that the above
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - copyright notice and this permission notice appear in all copies.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews -
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews-->
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<!-- $Id: Bv9ARM.5.html,v 1.9 2000/07/27 09:41:55 tale Exp $ -->
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML EXPERIMENTAL 970324//EN">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<HTML>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<HEAD>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<META NAME="GENERATOR" CONTENT="Adobe FrameMaker 5.5/HTML Export Filter">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<LINK REL="STYLESHEET" HREF="Bv9ARM.css">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<TITLE> Section 5. The BIND 9 Lightweight Resolver</TITLE></HEAD>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<BODY BGCOLOR="#ffffff">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<H1 CLASS="1Level">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001240">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsSection 5. <A NAME="22731">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThe BIND&nbsp;9 Lightweight Resolver</H1>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<DIV>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<H3 CLASS="2Level">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001241">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews5.1 The Lightweight Resolver Library</H3>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001242">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsTraditionally applications have been linked with a stub resolver library that sends recursive DNS queries to a local caching name server.</P>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001243">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsIPv6 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>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001244">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsInstead, 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>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</DIV>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<DIV>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<H3 CLASS="2Level">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001245">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews5.2 Running a Resolver Daemon</H3>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</OL>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001246">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsTo use the lightweight resolver interface, the system must run the resolver daemon <CODE CLASS="Program-Process">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslwresd</CODE>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews.</P>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001247">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsApplications 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">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsfoo.example.com</EM>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews?&quot; and &quot;what are the names for IPv4 address 204.152.184.79?&quot;</P>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001248">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThe daemon currently only looks in the DNS, but in the future it may use other sources such as <EM CLASS="grammar_literal">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/etc/hosts</EM>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews, NIS, etc.</P>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<P CLASS="2LevelContinued">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<A NAME="pgfId=1001249">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</A>
5c526acb82c882e41b655c31f5fa4425c87b671cMark AndrewsThe <CODE CLASS="Program-Process">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewslwresd</CODE>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews 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">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrewsnameserver</CODE>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews lines in <EM CLASS="pathname">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews/etc/resolv.conf</EM>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews as forwarders, but is also capable of doing the resolution autonomously if none are specified.</P>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</DIV>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<HR ALIGN="center">
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews<p>Return to <A href="Bv9ARM.html">BIND 9 Administrator Reference Manual</A> table of contents.</p>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</BODY>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews</HTML>
5c526acb82c882e41b655c31f5fa4425c87b671cMark Andrews