Are you using the options to restrict dnsmasq to a particular interface (or exclude particular interfaces). If not, then dnsmasq ought to bind 0.0.0.0 port 67 and thus receive packets even on IP addresses and interfaces created after startup. At least I think Simon has said that dnsmasq uses INADDR_ANY unless the bind-interfaces option is in effect.<br>
<br><div class="gmail_quote">On Wed, Apr 8, 2009 at 7:39 PM, Perette Barella <span dir="ltr"><<a href="mailto:perette@barella.org">perette@barella.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
dnsmasq has a race condition on OS X. I believe the problem is that if dnsmasq starts before IP V4 is fully up, it can't bind to a IP V4 port and therefore won't resolve anything. It will, of course, happily resolve local dns requests.<br>
<br>
Of course, maybe the problem report should be against launchd, the OS X replacement for /etc/rc*, which doesn't have much in the way of dependency resolving.<br>
<br>
Below is a time-delay launchd.plist file that will, in a rather stupid way, fix the problem. I think 10 seconds might be excessive, but then, it's not like UNIX servers are booting more than every few months. If there's a better solution, I'd be glad to learn it.<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"<br>
"<a href="http://www.apple.com/DTDs/PropertyList-1.0.dtd" target="_blank">http://www.apple.com/DTDs/PropertyList-1.0.dtd</a>"><br>
<plist version="1.0"><br>
<dict><br>
<key>Label</key><br>
<string>uk.org.thekelleys.dnsmasq</string><br>
<key>ProgramArguments</key><br>
<array><br>
<string>/bin/bash</string><br>
<string>-c</string><br>
<string>sleep 10 &amp;&amp; exec /usr/local/sbin/dnsmasq -k</string><br>
</array><br>
<key>RunAtLoad</key><false/><br>
<key>AbandonProcessGroup</key><false/><br>
<key>KeepAlive</key><br>
<dict><br>
<key>NetworkState</key><true/><br>
</dict><br>
</dict><br>
</plist><br>
<br>
Perette<br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br>