From owner-freebsd-questions@FreeBSD.ORG Thu Oct 11 18:12:17 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C541F16A41B for ; Thu, 11 Oct 2007 18:12:17 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id A91D813C465 for ; Thu, 11 Oct 2007 18:12:17 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 1AE7E310EE; Thu, 11 Oct 2007 14:12:17 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 11 Oct 2007 14:12:17 -0400 X-Sasl-enc: IkKNkHYDXhLa6RQJSwQGNmhWO4DEoFr5L/9CxE1ly4uA 1192126336 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id A97FE1EE5D; Thu, 11 Oct 2007 14:12:16 -0400 (EDT) In-Reply-To: <470E4AFC.9070505@mail.ru> References: <82158399-7871-4582-984C-61BC2462543C@goldmark.org> <470E4AFC.9070505@mail.ru> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <722725C4-F21E-4939-BE0D-E1D2B8B3C4EA@goldmark.org> Content-Transfer-Encoding: 7bit From: Jeffrey Goldberg Date: Thu, 11 Oct 2007 13:12:15 -0500 To: Yuri Pankov X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: Different DNS responses depending on query source X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 18:12:17 -0000 On Oct 11, 2007, at 11:10 AM, Yuri Pankov wrote: > Jeffrey Goldberg wrote: >> So is there a way to have bind listening on the only interface and >> IP address the host can have give different answers depending on >> where the query comes from? > You can use BIND's "view" statement: > http://www.isc.org/sw/bind/arm94/ > Bv9ARM.ch06.html#view_statement_grammar Thank you and others who have pointed out the the view statement in BIND 9 does exactly what I want. I (obviously) hadn't been aware of the view statement until now. I'd also like to thank Jonathan Horne who off-list pointed me to a detailed article with examples he wrote that covers precisely my case. -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/