Thanks again for the help!<div><br></div><div>Very much appreciated!</div><div><br></div><div>JP<br><br><div class="gmail_quote">On Tue, Aug 3, 2010 at 4:49 PM, Perette Barella <span dir="ltr">&lt;<a href="mailto:perette@barella.org">perette@barella.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><br><div><div class="im"><div>On 2010年08月03日, at 18:08, John Puffs wrote:</div><blockquote type="cite">
<div>Seems silly that certain options in the .plist file are not automatically updated. I will file a bug report as this is not good.</div></blockquote></div><div>It may make more sense when you consider that the .plist is *not* dnsmasq&#39;s config file.  It&#39;s a config file for launchd, telling launchd how to invoke dnsmasq.  Thus, the way I&#39;d suggest reporting the bug is that the .plist file should not unnecessarily pass dnsmasq parameters that are particulars of dnsmasq configuration.</div>
<div><br></div><div>This way, the automatic update you&#39;re envisioning becomes unnecessary.  If the .plist doesn&#39;t specify -r /etc/resolv.conf at all (because it&#39;s not inherently part of launching/managing the process anyway) then it&#39;ll use the ones from dnsmasq.conf.  So if MacPorts takes these lines out of the .plist:</div>
<div><span style="font-family:monospace">     &lt;string&gt;-r&lt;/string&gt;</span><span style="font-family:monospace"><br></span><span style="font-family:monospace">     &lt;string&gt;/etc/resolv.conf&lt;/string&gt; (or whatever you&#39;ve changed it to)</span></div>
<div>and it&#39;ll work sensibly. (Which, apparently, is the way I suggested it in the first place: <a href="https://trac.macports.org/ticket/21276" target="_blank">https://trac.macports.org/ticket/21276</a> ...  Why they changed it, I don&#39;t know.)</div>
<div class="im"><div><br></div><blockquote type="cite"><div>One quick question that I think I know the answer to.. You said &quot;Since command-line options override the config file options in dnsmasq (as with most other utilities), your config file is ignored in preference of the .plist/command line option.&quot;  I understand that options that are listed in the .plist will override the config file. But do the rest of the config file options still work correctly? </div>
</blockquote><div><br></div></div><div>Yes, the rest of your settings are getting picked up from the .conf file.  The -r option (equivalent to &quot;resolv-file&quot; in the config file) is the only option being passed to dnsmasq and thus overriding the resolv-file config file setting.  (In a pure sequence-of-operations, dnsmasq IS reading your config file&#39;s setting... But then it&#39;s overridden by the -r parameter/command line option passed to it.)</div>
<div><br></div><div><br></div><div><br></div><div>And a comment/question on the man page... Under &quot;CONFIG FILE&quot;, it indicates:</div><div><div><blockquote type="cite">&quot;For options which may only be  specified  once,  the  configuration  file overrides the command line.&quot;</blockquote>
</div><div><br></div><div>Skimming through I don&#39;t see any mention of which ones those are.  If any of these still exist, they should be noted somehow.</div><div><br></div><div>Peri</div><div><br></div></div></div></div>
</blockquote></div><br></div>