Fixed dns rule matching.