updated structure of dns script