Le 17/01/2013 15:45, Serge Hallyn a écrit :
Quoting Laurent Ducos (laurent.du...@biblibre.com):
Hello.
I use lxc and lxc-net on unbuntu 12.10 that works fine.
My problem is about the /etc/resolv.conf file in the container.
I think the file is written by dnsmasq when assigning dhcp lease
Is it possible to tell dnsmasq : wrote "nameserver 8.8.8.8 nameserver
8.8.4.4" in place of the value of "--listen-address" (dnsmask command
line) ?
Not sure *exactly* what you want, but I think the information you want
is in the resolvconf(8) manual page.
-serge
I first, i apologize for my "so bad" english.
My problem is that dnsmasq assigns (with dhcp) to the lxc containers the
value of "dhcp --listen-address " as dns nameserver.
I want to use another dns server in my local network
The solution is to use "--dhcp-option=6,192.168.X.X,192.168.X.X" in the
dnsmasq command line. 6 is a tag indicating the DHCP option dns-server
Now the file /etc/resolv.conf of my containers are properly informed.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel