edit: (for clarification)
I have two servers. Server 1 has a static IP, and server2 has a dynamic hostname using DDNS services. both servers are running Ubuntu 12.04 lts, and virtualmin.
on server 1, we are running bind9, and and it has a Master Zone for its official domain, lets call it MyWebsite.com
server two (2), can be accessed via server2.mywebsite.com. we have already created a CNAME record, which points to its hostname provided by DDNS services
our problem is understanding how to get server 2 to a add a simple CNAME record to the primary machine's Master Zone file for the domain.
all we need to do is add a record similar to this:
user1.mywebsite.com -> CNAME -> server2.mywebsite.com
to the Master Zone file for the domain On the primary server.
(this is already working in practice. we need a way to have the template automatically add a CNAME record to the primary machines bind9 master zone file setup upon creation. at this moment, we are doing it by hand)
Thank you!