looking for bugs, that mydnsquery() function uses netmkaddr(), which stores the resulting dialstring in a global static buffer. the tcplock in the query makes sure theres just one tcp dial going on *per query* but there could be multiple queries in parallel i think which might override that buffer and corrupt it.
its probably harmless (dial might try to connect to the wrong machine) and not the cause of your crash tho. -- cinap