From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 03:57:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8506B16A4CE for ; Fri, 14 Nov 2003 03:57:11 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FB7943FCB for ; Fri, 14 Nov 2003 03:57:10 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id D22AB3ABB35; Fri, 14 Nov 2003 12:56:42 +0100 (CET) Date: Fri, 14 Nov 2003 12:56:42 +0100 From: Pawel Jakub Dawidek To: FB Message-ID: <20031114115642.GE85962@garage.freebsd.pl> References: <20031112180124.3F85943FD7@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="sDKAb4OeUBrWWL6P" Content-Disposition: inline In-Reply-To: <20031112180124.3F85943FD7@mx1.FreeBSD.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p9 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Multiple IPs in Jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 11:57:11 -0000 --sDKAb4OeUBrWWL6P Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 12, 2003 at 10:01:23AM -0800, FB wrote: +> Before the patch was applied, the jail environment had no problem with d= ns. +> After the patch was applied however (and userland rebuilt both on host = and +> jail), dns breaks in the jail environment. Basically, gethostbyname fai= ls +> and h_errno is set to 2 - Host name lookup failure. the system is config= ured +> properly, since the only changes are to the kernel and the modified jail +> mechanism. Also interesting is that the failure is immediate, there is no +> timeout.=20 Gethostbyname(3) always fails? You could try this patch againt recent -CURRENT, but I haven't added anything - for me gethostbyname(3) in jail works fine. http://garage.freebsd.pl/patches/mijail5_2.patch --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --sDKAb4OeUBrWWL6P Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP7TC+j/PhmMH/Mf1AQH/JwP+Nai/Xw9M8/K3O6d1I0/FH0b+jNNN/jF5 dVZBzSzaakzQ0zFlFqMJmhXfxwI/vuQ2CGrVUSZB/oHACFC7lLV5QW0slT534gWT clZMdTqVgQCKCF2tcHE9eW5lGheTcaqAyWeiqGbNqhHD3gXEo9r9/aikruDiuiwv G8wCdr9eaDM= =sjLb -----END PGP SIGNATURE----- --sDKAb4OeUBrWWL6P--