<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dns forwarder not working .. bug ? in &#x2F;etc&#x2F;inc&#x2F;services.inc]]></title><description><![CDATA[<p dir="auto">Bug in services.inc for BETA4 ?</p>
<p dir="auto">my dns forwarder can't seem start..</p>
<p dir="auto">did a look in the sources and  managed to solve it in /etc/inc/services.inc</p>
<p dir="auto">changed the line</p>
<p dir="auto">if (isset($dnsmasq['dnsmasq']['enable'])) {</p>
<p dir="auto">to</p>
<p dir="auto">if (isset($<strong>config</strong>['dnsmasq']['enable'])) {</p>
<p dir="auto">.. and all the changes in <strong>bold</strong></p>
<p dir="auto">if (isset($<strong>config</strong>['dnsmasq']['enable'])) {<br />
                if ($g['booting'])<br />
                        echo "Starting DNS forwarder… ";<br />
                else<br />
                        sleep(1);</p>
<p dir="auto">/* generate hosts file */<br />
                system_hosts_generate();<br />
                $args = "";</p>
<p dir="auto">if (isset($<strong>config</strong>['dnsmasq']['regdhcp'])) {<br />
                        $args .= " -l {$g['dhcpd_chroot_path']}/var/db/dhcpd.leases" .<br />
                                " -s {$config['system']['domain']}";<br />
                }</p>
<p dir="auto">if (isset($<strong>config</strong>['dnsmasq']['domainoverrides']) &amp;&amp; is_array($<strong>config</strong>['dnsmasq']['domainoverrides'])) {<br />
                        foreach($<strong>config</strong>['dnsmasq']['domainoverrides'] as $override) {<br />
                                $args .= ' –server=/' . $override['domain'] . '/' . $override['ip'];<br />
                        }<br />
                }</p>
<p dir="auto">/* run dnsmasq */<br />
                mwexec("/usr/local/sbin/dnsmasq {$args}");</p>
<p dir="auto">if ($g['booting'])<br />
                        echo "done.\n";</p>
<p dir="auto">}</p>
<p dir="auto">is this a bug? or is &lt;dnsmasq&gt;in config.xml supposed to fall under &lt;interfaces&gt;?&lt;/interfaces&gt;&lt;/dnsmasq&gt;</p>
]]></description><link>https://forum.netgate.com/topic/1326/dns-forwarder-not-working-bug-in-etc-inc-services-inc</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 14:51:33 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/1326.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Jun 2006 11:25:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dns forwarder not working .. bug ? in &#x2F;etc&#x2F;inc&#x2F;services.inc on Sat, 17 Jun 2006 06:48:29 GMT]]></title><description><![CDATA[<p dir="auto">To the original poster:  I am sure you know the rules of running -HEAD.  We are terminating this thread now.</p>
]]></description><link>https://forum.netgate.com/post/137977</link><guid isPermaLink="true">https://forum.netgate.com/post/137977</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Sat, 17 Jun 2006 06:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to Dns forwarder not working .. bug ? in &#x2F;etc&#x2F;inc&#x2F;services.inc on Sat, 17 Jun 2006 04:43:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sullrich">@<bdi>sullrich</bdi></a>:</p>
<blockquote>
<p dir="auto">I am not sure where you are finding this code but in my /etc/inc/services.inc it shows:</p>
<p dir="auto">if (isset($config['dnsmasq']['enable'])) {</p>
<p dir="auto">if ($g['booting'])<br />
echo "Starting DNS forwarder… ";<br />
else<br />
sleep(1);</p>
<p dir="auto">/* generate hosts file */<br />
system_hosts_generate();</p>
<p dir="auto">$args = "";</p>
<p dir="auto">if (isset($config['dnsmasq']['regdhcp'])) {</p>
<p dir="auto">Notice it uses $config already.</p>
<p dir="auto">Why is your code different?</p>
</blockquote>
<p dir="auto">Because he's running HEAD.  Same issue with dnsmasq I bitched about, but haven't fixed cause it was part of the multi-interface code you were writing and I didn't feel like either backing out the broken code or finishing the implementation :)</p>
<p dir="auto">Guess I'll file a ticket against HEAD though as a placeholder for this bug.</p>
<p dir="auto">–Bill</p>
]]></description><link>https://forum.netgate.com/post/137974</link><guid isPermaLink="true">https://forum.netgate.com/post/137974</guid><dc:creator><![CDATA[billm]]></dc:creator><pubDate>Sat, 17 Jun 2006 04:43:03 GMT</pubDate></item><item><title><![CDATA[Reply to Dns forwarder not working .. bug ? in &#x2F;etc&#x2F;inc&#x2F;services.inc on Tue, 13 Jun 2006 21:37:04 GMT]]></title><description><![CDATA[<p dir="auto">I am not sure where you are finding this code but in my /etc/inc/services.inc it shows:</p>
<p dir="auto">if (isset($config['dnsmasq']['enable'])) {</p>
<p dir="auto">if ($g['booting'])<br />
echo "Starting DNS forwarder… ";<br />
else<br />
sleep(1);</p>
<p dir="auto">/* generate hosts file */<br />
system_hosts_generate();</p>
<p dir="auto">$args = "";</p>
<p dir="auto">if (isset($config['dnsmasq']['regdhcp'])) {</p>
<p dir="auto">Notice it uses $config already.</p>
<p dir="auto">Why is your code different?</p>
]]></description><link>https://forum.netgate.com/post/137896</link><guid isPermaLink="true">https://forum.netgate.com/post/137896</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Tue, 13 Jun 2006 21:37:04 GMT</pubDate></item><item><title><![CDATA[Reply to Dns forwarder not working .. bug ? in &#x2F;etc&#x2F;inc&#x2F;services.inc on Tue, 13 Jun 2006 11:58:45 GMT]]></title><description><![CDATA[<p dir="auto">If you are running a full install run a "cvs_syn.sh RELENG_1" from the shell (and be patient, it takes some time). Reboot after that. Not sure where your problem is but I never have heard from this bug before and beta4 is rather old though the latest official build on the mirrors. RC1 should be released in the near future.</p>
]]></description><link>https://forum.netgate.com/post/137885</link><guid isPermaLink="true">https://forum.netgate.com/post/137885</guid><dc:creator><![CDATA[hoba]]></dc:creator><pubDate>Tue, 13 Jun 2006 11:58:45 GMT</pubDate></item></channel></rss>