From owner-freebsd-questions@freebsd.org Tue Jan 19 10:40:55 2016 Return-Path: Delivered-To: freebsd-questions@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 AA059A87389 for ; Tue, 19 Jan 2016 10:40:55 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E84C1B40 for ; Tue, 19 Jan 2016 10:40:55 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id u0JAeo1N047796 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 19 Jan 2016 10:40:51 GMT (envelope-from matthew@freebsd.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk u0JAeo1N047796 Authentication-Results: smtp.infracaninophile.co.uk/u0JAeo1N047796; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Subject: Re: resolver not working in a chroot To: freebsd-questions@freebsd.org References: <569e05b6.2RStkLc7SZIg/dVM%perryh@pluto.rain.com> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <569E12B2.5090302@freebsd.org> Date: Tue, 19 Jan 2016 10:40:50 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <569e05b6.2RStkLc7SZIg/dVM%perryh@pluto.rain.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj" X-Virus-Scanned: clamav-milter 0.99 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 10:40:55 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 01/19/16 09:45, Perry Hutchison wrote: > The resolver is not working in a chroot (to the 10.2 memstick image, > with its /tmp, /var/run, and /var/tmp made writable by mounting tmpfs > on them): > # chroot -u 0 -g 0 -G 105,0,5,20,25 /mnt ping pkg.FreeBSD.org > ping: cannot resolve pkg.FreeBSD.org: Host name lookup failure >=20 > but it works when not in a chroot: > # ping pkg.FreeBSD.org > PING pkg.FreeBSD.org (96.47.72.71): 56 data bytes > 64 bytes from 96.47.72.71: icmp_seq=3D0 ttl=3D51 time=3D97.329 ms > ... >=20 > What would cause this? >=20 You've mounted the 10.2 memstick image on /mnt? Do you have a devfs mounted inside the chroot? Try running: # mount -t devfs devfs /mnt/dev and then try your chroot'ed command again. Interesting to see if that helps. Cheers, Matthew --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJWnhKyAAoJEABRPxDgqeTnzeUP/jfZVWoE9k0Dw/rtgtUbvHQl jzK202H16Mt1K7EiIvp5y/7i7ibNicViiadVqIKmHg3vUgFfRS14d0Av7UKXkiDt 6oKslSmc/P/y46NQR5DxRr930Ck/vy9tc+llBQkAiCzQHWikj6zyEji+10hRxDif RI3F+S1OkrtJwKr0w3HkirY13PWtKI+AQY0nQPCAE57aogqKChBd3rW4jLOfD5/2 bWs4XN3z6/RbsojZSAIn+VqNHbCk3jGEJEOFA4FHjSqeL8Vi04HaV5tLUkyP426A YQlJ7EM1uqONBUPgTif0nZLZGlc2Mtcrp+Li7ggnwhHFUNbLvUQ9AOqOztLnL+SA JAbHrb5U5kX/J/724n+taSgVN4UuEHaf2cUPS+Hhiq2s0zopOOHx6BWkzgvI0ApF LwdYUvwAByu8Jt0Z7g7ZeSQvnlOW4aIlNhDoTyTqQrSRnayi7SYBb1aLUDrKQIgW dV8RSsDqjCTBI10n7D37CHY0iMmehTluAXIvio41CPtEjok6F2PqzVlQlj27FdxK Gum1327mkuazhYPhtBOYBL/QlvL1iXI1yv09us4vcRCwMZ0x2RXpL1dc2cPPs0lM MmNQSM7Xq813QCI9Z3S/ATMSvfuc8nh5PzdpTl8cuMiouJ8SIkTNoyWuHUuY9co4 swrlqYt6fkRkRe8UDEB5 =X7/A -----END PGP SIGNATURE----- --IF0JJMAuBTPNHFGSWO4gHGrdh9WIt8phj--