<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><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>It may make more sense when you consider that the .plist is *not* dnsmasq's config file. &nbsp;It's a config file for launchd, telling launchd how to invoke dnsmasq. &nbsp;Thus, the way I'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're envisioning becomes unnecessary. &nbsp;If the .plist doesn't specify -r /etc/resolv.conf at all (because it's not inherently part of launching/managing the process anyway) then it'll use the ones from dnsmasq.conf. &nbsp;So if MacPorts takes these lines out of the .plist:</div><div><span class="Apple-style-span" style="font-family: monospace; ">&nbsp;&nbsp; &nbsp; &lt;string&gt;-r&lt;/string&gt;</span><span class="Apple-style-span" style="font-family: monospace; "><br></span><span class="Apple-style-span" style="font-family: monospace; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;string&gt;/etc/resolv.conf&lt;/string&gt; (or whatever you've changed it to)</span></div><div>and it'll work sensibly. (Which, apparently, is the way I suggested it in the first place:&nbsp;<a href="https://trac.macports.org/ticket/21276">https://trac.macports.org/ticket/21276</a> ... &nbsp;Why they changed it, I don't know.)</div><div><br></div><blockquote type="cite"><div>One quick question that I think I know the answer to.. You said "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." &nbsp;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?&nbsp;</div></blockquote><div><br></div><div>Yes, the rest of your settings are getting picked up from the .conf file. &nbsp;The -r option (equivalent to "resolv-file" in the config file) is the only option being passed to dnsmasq and thus overriding the resolv-file config file setting. &nbsp;(In a pure sequence-of-operations, dnsmasq IS reading your config file's setting... But then it'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 "CONFIG FILE", it indicates:</div><div><div><blockquote type="cite">"For options which may only be &nbsp;specified &nbsp;once, &nbsp;the &nbsp;configuration &nbsp;file overrides the command line."</blockquote></div><div><br></div><div>Skimming through I don't see any mention of which ones those are. &nbsp;If any of these still exist, they should be noted somehow.</div><div><br></div><div>Peri</div><div><br></div></div></div></body></html>