Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 18:24:20 +0300
From:      Jeff Tipton <jeff.t@mail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Resolvconf with FreeBSD jails
Message-ID:  <5016A724.3010600@mail.com>
In-Reply-To: <5016A24C.6050508@gjunka.com>
References:  <5016A24C.6050508@gjunka.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5016A724.3010600>