<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-06-30 12:10 GMT+02:00 Maciej Soltysiak <span dir="ltr"><<a href="mailto:maciej@soltysiak.com" target="_blank">maciej@soltysiak.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Jun 30, 2015 at 4:03 AM, <a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a> <span dir="ltr"><<a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span><br>
On 06/29/2015 04:01 PM, Michał Lipka wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>
<br>
2015-06-25 16:02 GMT+02:00 <a href="mailto:wkitty42@gmail.com" target="_blank">wkitty42@gmail.com</a><br></span><span>
    does breaking the line work?<br>
<br>
    eg:<br>
    dhcp-option=249,<a href="http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4" rel="noreferrer" target="_blank">10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4</a><br></span>
    <<a href="http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4" rel="noreferrer" target="_blank">http://10.0.0.1/32,1.2.3.4,192.168.13.15/32,1.2.3.4</a>>, \<br>
    <a href="http://192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4</a><br>
    <<a href="http://192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4" rel="noreferrer" target="_blank">http://192.168.13.16/32,1.2.3.4,192.168.13.17/32,1.2.3.4</a>>, \<br>
    <a href="http://192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4</a><br>
    <<a href="http://192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4" rel="noreferrer" target="_blank">http://192.168.13.18/32,1.2.3.4,192.168.13.19/32,1.2.3.4</a>>, \<br>
    <a href="http://192.168.13.20/32,1.2.3.4" rel="noreferrer" target="_blank">192.168.13.20/32,1.2.3.4</a> <<a href="http://192.168.13.20/32,1.2.3.4" rel="noreferrer" target="_blank">http://192.168.13.20/32,1.2.3.4</a>><span><br>
<br>
<br>
Thank you for this idea. Unfortunately it does not work. dnsmasq fails at first<br>
line which has no option:<br>
</span></blockquote>
<br>
sounds like an option that should maybe be implemented... especially since it is an apparent standard that so many tools do follow ;)<br><div><div></div></div></blockquote></span><div>I think dnsmasq has a 1024 characters for config lines. I browsed the source briefly last night but couldn't find it.<br></div></div></div></div></blockquote><div><br></div><div>I checked it more precisely and it turned out that is not line length that bothers dnsmasq. It's routes count.</div><div>I can set up to 28 routes in single dhcp-option line. It doesn't matter if it will take 600 or 800 characters. If I set 29th route dnsmasq complains about option too long:</div><div>







<p class=""><span class="">dnsmasq: dhcp-option too long at line 320 of /etc/dnsmasq.conf</span></p></div><div>Can you check the code once again and try to find this limit (28) ? Why it is like that?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>Anyway, I too hit this when I configure dummy zones to return NXDOMAIN. What I do to get around this is to use mutliple directives, e.g.:<br></div><div>server=/<a href="http://doubleclick.net/...bla" target="_blank">doubleclick.net/...bla</a> bla bla bla bla /<br></div><div>server=/nextline.goes.here/more.domains.to.return.nxdomain.for/<br><br></div><div>Would it work if you did something similar:<br></div><div>dhcp-option=249,routes go here,routes go here,<br></div><div>dhcp-option=249,more routes go here,...<br>dhcp-option=249,even more routes go here,...<br><br></div><div>So that each line is less than 1024 characters?</div></div></div></div></blockquote><div><br></div><div>As I wrote above it's not about characters. Besides of that if multiple options are specified only last one is applied (please check first email of this thread for an example).</div></div><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Michal</div></div>