<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 23, 2010, at 8:10 AM, Simon Kelley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Peet McKinney wrote:<br><blockquote type="cite">All,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">dnsmasq has been an absolute life-saver in my environment. OS X<br></blockquote><blockquote type="cite">Directory services isn't playing nicely with GC discovery in my<br></blockquote><blockquote type="cite">Active Directory environment, so I've brought up a couple instances<br></blockquote><blockquote type="cite">of dnsmasq to help force it into being a good citizen.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've compiled dnsmasq on 10.6.4 from the 2.55 source and configured<br></blockquote><blockquote type="cite">it to respond correctly to my SRV lookups. I've also installed the<br></blockquote><blockquote type="cite">launchd plist. (Though I have to wonder the value of having that<br></blockquote><blockquote type="cite">plist configured with '--log-queries' and<br></blockquote><blockquote type="cite">'--log-facility=/var/log/dnsmasq.log' by default. Admittedly, I'm an<br></blockquote><blockquote type="cite">idiot for not checking and ending up with a 24GB dnsmasq.log, but<br></blockquote><blockquote type="cite">considering there's not a default rotation for the log it seems a bit<br></blockquote><blockquote type="cite">of an odd choice for a default launchd setup.)<br></blockquote><br>I can't see the point of that either: I'll certainly remove<br>'--log-queries'. Is it OK on MacOS X to remove the log-facility line<br>too, and log through the syslogd?<br></div></blockquote><div><br></div><div>It seemed to be logging fine to system.log without the log-facility line. This appears in my system.log after remove the 'log-faciltity' line and restarting dnsmasq ...</div><div><br></div><div>Nov 23 08:21:42 jod dnsmasq[75494]: ignoring nameserver 10.8.197.110 - local interface</div><div><br></div><blockquote type="cite"><div><blockquote type="cite"><br></blockquote><blockquote type="cite">Since cleaning up my silly logging issues, I'm left with what my<br></blockquote><blockquote type="cite">simply be a standard behavior of dnsmasq, but one that I'd really<br></blockquote><blockquote type="cite">like to find a way around. &nbsp;When I query SRV records that are in my<br></blockquote><blockquote type="cite">dnsmasq config, they are *always* returned in the same order with no<br></blockquote><blockquote type="cite">randomization. Please see below:<br></blockquote><blockquote type="cite"><br></blockquote><br>As others have said, it ain't random, the order gets rotated each time.<br>That would seem to be a sensible thing to do; it's already done for A<br>records, but the code in the cache subsystem that does that is not in<br>the path used when answering SRV queries.<br></div></blockquote><div><br></div><div>Honestly, I'm glad to hear it's not random. Goes to show you how closely I looked at the results, but&nbsp;</div><br><blockquote type="cite"><div><br><blockquote type="cite">Is there anyway to randomize the answers dnsmasq provides.<br></blockquote><br>It's half a dozen lines of scary linked-list manipulation, could you try<br><br><a href="http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.56test16.tar.gz">http://www.thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.56test16.tar.gz</a><br><br>and see if behaves sensibly?<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>Um wow. No, really *wow*. &nbsp;Thanks for giving this a go. &nbsp;I'll drop this on my secondary server and try right now.</div><div><br></div><div>Thanks.Peet<br><div><br></div><br><blockquote type="cite"><div>Cheers,<br><br>Simon.<br><br><br><br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks.Peet<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________ Dnsmasq-discuss<br></blockquote><blockquote type="cite">mailing list <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a> <br></blockquote><blockquote type="cite"><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br></body></html>