From owner-freebsd-stable Wed Dec 4 23:25:48 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 434C337B401 for ; Wed, 4 Dec 2002 23:25:47 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8133343EB2 for ; Wed, 4 Dec 2002 23:25:46 -0800 (PST) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2002120507254500100s7c4he>; Thu, 5 Dec 2002 07:25:45 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id gB57Pj7v018459 for ; Thu, 5 Dec 2002 02:25:45 -0500 (EST) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id gB57Pi3h018456; Thu, 5 Dec 2002 02:25:44 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-stable-local@be-well.ilk.org using -f To: stable@freebsd.org Subject: Re: DNS query from public IP though localhost specified References: <20021204104103.F56412@oolong.il.thewrittenword.com> From: Lowell Gilbert Date: 05 Dec 2002 02:25:44 -0500 In-Reply-To: <20021204104103.F56412@oolong.il.thewrittenword.com> Message-ID: <444r9t9bbb.fsf@be-well.ilk.org> Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Albert Chin writes: > I have a multihomed FreeBSD 4.6-STABLE box with two public IPs on xl0 > and one private IP on xl1. The hostname corresponds to the private IP > on xl1. This box acts as a nameserver running BIND 9.2.1 and > /etc/resolv.conf is configured as: > search [internal domain] [external domain] > nameserver 127.0.0.1 > > If I try to ssh to this host from another box and have "tcpdump -i > lo0" running, I get tcpdump output indicating: > 18:16:48.342762 [public hostname].1572 > [public hostname].domain: 19465+ PTR? [rev internal ip].in-addr.arpa. (43) > 18:16:48.343292 [public hostname].domain > [public hostname].1572: 19465 Refused 0/0/0 (43) > 18:16:48.346175 localhost.[internal domain].1573 > localhost.[internal domain].domain: 12661+ PTR? [rev internal ip].in-addr.arpa. (43) > 18:16:48.346555 localhost.[internal domain].domain > localhost.[internal domain].1573: 12661* 1/1/1 PTR[|domain] > > It seems that only ssh causes this behaviour. ftpd causes only > localhost lookups. > > So, why am I seeing queries from the public IP on xl0 while listening > on lo0 Why do you care? It doesn't make any difference which IP address it uses. The important thing is that it's on the correct interface. [which it is] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message