From owner-freebsd-questions@FreeBSD.ORG Mon Jul 30 15:24:23 2012 Return-Path: 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 4BF68106564A for ; Mon, 30 Jul 2012 15:24:23 +0000 (UTC) (envelope-from jeff.t@mail.com) Received: from mailout-us.mail.com (mailout-us.mail.com [74.208.122.35]) by mx1.freebsd.org (Postfix) with SMTP id E0F058FC15 for ; Mon, 30 Jul 2012 15:24:22 +0000 (UTC) Received: (qmail invoked by alias); 30 Jul 2012 15:24:22 -0000 Received: from unknown (EHLO blazon-pc.runningwild.local) [78.84.105.231] by mail.gmx.com (mp-us010) with SMTP; 30 Jul 2012 11:24:22 -0400 X-Authenticated: #76218138 X-Provags-ID: V01U2FsdGVkX19W/25fvT1Wh3oN5iDdF7vAdQ1bSsCOtXYcAC5YCC fP5BPcmT/O+MgB Message-ID: <5016A724.3010600@mail.com> Date: Mon, 30 Jul 2012 18:24:20 +0300 From: Jeff Tipton User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <5016A24C.6050508@gjunka.com> In-Reply-To: <5016A24C.6050508@gjunka.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: 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:24:23 -0000 On 07/30/2012 18:03, Grzegorz Junka wrote: > 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. If you really need your resolv.conf for connecting to an external network (and not to resolve local machine names), why not just add public DNS servers there and let them stay the same all he time? > > 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? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"