From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 15:05:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 193F2106564A for ; Mon, 30 Jul 2012 15:05:56 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from oproxy5-pub.bluehost.com (oproxy5.bluehost.com [IPv6:2605:dc00:100:2::a5]) by mx1.freebsd.org (Postfix) with SMTP id BF94D8FC0A for ; Mon, 30 Jul 2012 15:05:55 +0000 (UTC) Received: (qmail 32354 invoked by uid 0); 30 Jul 2012 15:03:44 -0000 Received: from unknown (HELO host316.hostmonster.com) (74.220.215.116) by cpoproxy2.bluehost.com with SMTP; 30 Jul 2012 15:03:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gjunka.com; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=2Y0C8s45RjMdBbwDTLFU1nGZ7VkGUHpo8y5L6ejByAQ=; b=qKEgG8csr/E+U0jjKLqj30DQ2WdkQw5UehyWWGCi7Hb1p9DE2RT/DU6+ZmaLGtYsD8JxFdLPRcxWGm5YzSe7DA23KDm33oc/Y5ke9XPBUB86nY5RWMgIHjt3wQp2uJ2Z; Received: from [92.40.254.228] (port=52411 helo=[192.168.0.51]) by host316.hostmonster.com with esmtpa (Exim 4.76) (envelope-from ) id 1SvrVX-00021W-SM for freebsd-questions@freebsd.org; Mon, 30 Jul 2012 09:03:44 -0600 Message-ID: <5016A24C.6050508@gjunka.com> Date: Mon, 30 Jul 2012 16:03:40 +0100 From: Grzegorz Junka User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {630:host316.hostmonster.com:gjunkaco:gjunka.com} {sentby:smtp auth 92.40.254.228 authed with list1+gjunka.com} Subject: Resolvconf with FreeBSD jails 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: Mon, 30 Jul 2012 15:05:56 -0000 FreeBSD 9 uses resolvconf tool to manage the resolv.conf file. How can I make it working with FreeBSD jails? In my case I am moving my laptop between networks and every time I boot FreeBSD it gets assigned a different DNS server. The file /etc/resolv.conf gets updated but the same file in each of the jails is not. I need resolv.conf in each jail in order for that jail to connect to the external network. I tried to make a link from resolv.conf in a jail to the same file in the host system, but inside jail the link doesn't work. I could copy the resolv.conf every time I boot FreeBSD after the DHCP obtained new DNS and updated resolv.conf but before ezjail starts any of the jails, but where I would need to put such copying?