Wrote a DNS  module and added the class to puppetmaster provisioning