Moving the update DNS function to the Model and other stuff.