From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 2 22:33:17 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2C13B7D9 for ; Wed, 2 Jan 2013 22:33:17 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-oa0-f50.google.com (mail-oa0-f50.google.com [209.85.219.50]) by mx1.freebsd.org (Postfix) with ESMTP id D0E3583E for ; Wed, 2 Jan 2013 22:33:16 +0000 (UTC) Received: by mail-oa0-f50.google.com with SMTP id n16so13615851oag.9 for ; Wed, 02 Jan 2013 14:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Zgr2g+mbcNLPmhbYSds532l/X0cGpEw4SFwyI2Z3r8E=; b=jX2Kx5lwsBvMz8vZZ05tNx2FpQMrEzXIdRSYmpo6oC5LDUS6lYYLGzJS4PyMD7x73r upkV5KGQReD+v2Bu8yni4O99GP6Xp+JHnuF5xz5MWXnZbsumPGwP6s79urI8TFvbfD2N 4jsKfKVNSEuVo3wNAapKBlkxqE7DKSuFzFXUGrGIvmmvIfbQ61FDGgRSMwVWpNNvMAc8 1U6vf/2BU3D9U8ddHPhT4iHbfh4fB5Nb691IiwMaFVXmyjVnxuzytVLd55QIzGpbhQ1t xbAh0ToLWNXi8csjeiXcOYpesLJhni0fWIvQvB6NjrWURZaZkLVJvmsmADJxq2ut2I37 olEA== MIME-Version: 1.0 Received: by 10.182.43.104 with SMTP id v8mr37705422obl.98.1357165990395; Wed, 02 Jan 2013 14:33:10 -0800 (PST) Received: by 10.182.214.67 with HTTP; Wed, 2 Jan 2013 14:33:10 -0800 (PST) Date: Wed, 2 Jan 2013 17:33:10 -0500 Message-ID: Subject: OT: getting named to answer differently based on requester's IP From: Aryeh Friedman To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2013 22:33:17 -0000 I have a local machine (say "foo.example.com") that is behind a very dumb firewall (it will not honor dmz/port forwarding if the connection originates from inside the firewall [192.168.2.X]).... specifically if I connect to the public IP from *OUTSIDE* of the lan it works but not from inside... I have a number of web services that depend on a specific DNS being set (specifically www/tomcat7 and the alike)... i.e. if I am at home I need to use "localhost" (changing it in /etc/hosts has no effect) if I am away I need to use "ack.example.com")... what I want to do is make it so I can use "ack.example.com" for all references... this means I need to make it so local requests to ack.example.com answer 192.168.2.2 and remote ones answer the public IP.. how do I configure named to do this (I have full control of all the nameservers in question)