Updated config file adn check for dns address