Merge pull request #4 from mehlis/fix-warnings

Fix warnings
added dns support with multiple results
use a random broker to connect to