Change scope of dns since method is being called directly