Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jan 17, 2014 9:18 am 
Offline

Joined: Fri Jan 17, 2014 9:13 am
Posts: 1
Hello,

I want to be able to easily clone a DNS record/zone using the API, pretty much how the 'Clone an existing zone' works in the DNS manager. I noticed the linode api has a linoe.clone method, and it would be great if the dns api had something similar (dns.clone).

It's mainly for convenience, I am using a bash script to automatically add dns records when adding virtual hosts...

Any other solutions would be greatly appreciated!


Top
   
PostPosted: Fri Jan 17, 2014 9:41 am 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
Since domain.clone would basically be a wrapper around the existing calls (to read existing records and create new ones like them), that seems like something that makes more sense to implement as a script that consumes the API rather than as an API call. Cloning domains differs from cloning Linode: a Linode clone is cloning the contents of the disks, which can't be read via the API, so it has to be a built-in call.

This doesn't mean it's not something we'll add in the future, but IMO it makes more sense as a script than a built-in call.

- Les


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group