Completed the Create_DNSDocument() function.