From owner-freebsd-questions@FreeBSD.ORG Fri Feb 23 05:42:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A384516A400 for ; Fri, 23 Feb 2007 05:42:39 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from drone1.qsi.net.nz (drone1-svc-skyt.qsi.net.nz [202.89.128.1]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6CC13C442 for ; Fri, 23 Feb 2007 05:42:38 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: (qmail 26077 invoked by uid 0); 23 Feb 2007 05:42:37 -0000 Received: from unknown (HELO chen.org.nz) ([202.89.146.5]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 23 Feb 2007 05:42:37 -0000 Received: by chen.org.nz (Postfix, from userid 1000) id 9D9AD7E861; Fri, 23 Feb 2007 18:42:36 +1300 (NZDT) Date: Fri, 23 Feb 2007 18:42:36 +1300 From: Jonathan Chen To: Jim Stapleton Message-ID: <20070223054236.GA80940@osiris.chen.org.nz> References: <80f4f2b20702221722q1de96eaaq426b061ae47f20fb@mail.gmail.com> <20070223014121.GA2803@osiris.chen.org.nz> <80f4f2b20702221749v230eefe8j86fb27de25a7df7a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80f4f2b20702221749v230eefe8j86fb27de25a7df7a@mail.gmail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: problems with jail 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: Fri, 23 Feb 2007 05:42:39 -0000 On Fri, Feb 23, 2007 at 01:49:25AM +0000, Jim Stapleton wrote: > oops, did a reply instead of reply all, sorry. > > My question was "what's the best way to test net connectivity in jail, > csup?", and i did try csup (using a copy of my standard ports > supfile), it failed: > > %csup -g -L 2 /etc/supfile-ports > Parsing supfile "/etc/supfile-ports" > Connecting to cvsup12.FreeBSD.org > Name lookup failure for "cvsup12.FreeBSD.org": hostname nor servname > provided, or not known > Will retry at 20:52:12 You need to set up the jail's /etc/resolv.conf to query a suitable DNS. If you want to check connectivity from within the jail to out, you could always "telnet mail-server-ip 25". To check connectivity in, you could try enabling the jail's sendmail server... Hope this helps. -- Jonathan Chen | To do is to be -- Nietzsche | To be is to do -- Sartre | Scooby do be do -- Scooby