From owner-freebsd-jail@freebsd.org Thu May 19 15:53:26 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B8C5B41B64 for ; Thu, 19 May 2016 15:53:26 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B44512C4 for ; Thu, 19 May 2016 15:53:25 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [192.168.1.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u4JFrN6Z009962 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 19 May 2016 15:53:24 GMT (envelope-from list1@gjunka.com) Subject: Re: jails in different private subnets on the same host To: freebsd-jail@freebsd.org References: <07d67bd5-206c-edd8-7f47-ef2b5c538e01@gjunka.com> <573DDE59.8000300@gmail.com> From: Grzegorz Junka Message-ID: <62a0bf1c-88f3-a815-1187-a26e51c9b8bb@gjunka.com> Date: Thu, 19 May 2016 15:53:23 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <573DDE59.8000300@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 15:53:26 -0000 On 19/05/2016 15:40, Ernie Luzar wrote: > James Gritton wrote: >> On 2016-05-18 09:08, Grzegorz Junka wrote: >>> I just tried telnet 192.168.1.50 80 from the main host and from the >>> 10.33.1.40 jail. From the main host it works without issues. From the >>> jail it eventually connected after 15 or so seconds of waiting. >> >> That sounds like about the kind of timeout I'd expect from DNS >> resolution not working. If you're adding a new subnet when the jail >> is created, you'll need to do something to get a nameserver to listen >> to it. >> >> - Jamie > > You have not copied the hosts /etc/resolv.conf to the jail in question. > Of course I did. root@somehost:/# cat /etc/resolv.conf search somehost.somedomain.com nameserver 192.168.1.60 nameserver 8.8.8.8 I installed the jail using bsdinstall and it copies that automatically. Grzegorz