fixes #42, handles dns wildcards