<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 17/01/2013 15:45, Serge Hallyn a
écrit :<br>
</div>
<blockquote cite="mid:20130117144551.GC8324@sergelap" type="cite">
<pre wrap="">Quoting Laurent Ducos (<a class="moz-txt-link-abbreviated" href="mailto:laurent.ducos@biblibre.com">laurent.ducos@biblibre.com</a>):
</pre>
<blockquote type="cite">
<pre wrap="">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) ?
</pre>
</blockquote>
<pre wrap="">
Not sure *exactly* what you want, but I think the information you want
is in the resolvconf(8) manual page.
-serge
</pre>
</blockquote>
I first, i <span id="result_box" class="short_text" lang="en"><span
class="hps"> apologize for my "so bad" english.<br>
</span></span><br>
<span id="result_box" class="" lang="en"><span class="hps">My
problem is that dnsmasq assigns (with dhcp) to the lxc
containers the value of "dhcp --listen-address " as dns
nameserver. </span></span><br>
<div id="gt-res-content" class="almost_half_cell">
<div dir="ltr" style="zoom:1">
<div id="tts_button" style="" class=""><object
type="application/x-shockwave-flash"
data="//www.gstatic.com/translate/sound_player2.swf"
id="tts" height="18" width="18"></object></div>
<span id="result_box" class="short_text" lang="en"><span
class="hps">I</span> <span class="hps">want to use</span> <span
class="hps">another</span> <span class="hps">dns server</span>
in my local network<span class="hps"><br>
The solution is to use "--dhcp-option=6,192.168.X.X,</span></span><span
id="result_box" class="short_text" lang="en"><span class="hps"><span
id="result_box" class="short_text" lang="en"><span
class="hps">192.</span></span></span></span><span
id="result_box" class="short_text" lang="en"><span class="hps"><span
id="result_box" class="short_text" lang="en"><span
class="hps"><span id="result_box" class="short_text"
lang="en"><span class="hps">168</span></span>.X.X</span></span>"
in the dnsmasq command line. </span></span><span
id="result_box" class="short_text" lang="en"><span class="hps">6</span>
<span class="hps">is a</span> <span class="hps">tag</span> <span
class="hps">indicating</span> <span class="hps">the DHCP
option</span> <span class="hps">dns-server</span></span></div>
</div>
<span id="result_box" class="" lang="en"><span class="hps">Now the
file</span> <span class="hps">/etc/</span><span class="hps">resolv.conf</span>
<span class="hps">of my</span> <span class="hps">containers are</span>
<span class="hps">properly informed</span></span><span
id="result_box" class="" lang="en"><span class="hps">.<br>
<br>
<br>
<br>
<br>
<br>
</span></span><span id="result_box" class="short_text" lang="en"><span
class="hps"></span></span><span id="result_box" class=""
lang="en"></span>
</body>
</html>