Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 06, 2011 2:45 pm 
Offline
Senior Newbie

Joined: Sat Nov 26, 2011 11:35 pm
Posts: 14
I have a customer that wants to buy and add the .info, .net, .biz etc. for their existing .com domains...

Now I built a site and pretty much washed my hands of the whole project, 1. because I'm not a web developer, i got the site up and running and 2. I didn't get paid nearly enough to make regular maintenance to the site.

In Linode is there a way, to automatically add sites into the DNS records? or a work around for having 100+ domains?

I know how to add multi-domins into the virtual hosts and get them running manually but the first steps are to add the domains into the DNS tab in the Linode Dashboard.




Thanks!


Top
   
 Post subject:
PostPosted: Tue Dec 06, 2011 4:58 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
The API is probably the easiest way. You'd do a domain.create for the domain, then domain.resource.creates for the records within the domain. In Python, it's roughly:

Code:
from api import Api
linode = Api(api_key)

for domain_name in mythical_domain_iterator():
  d = linode.domain_create(domain=domain_name, type='master')
  domain_id = d['DATA']['DomainID']
  for name, rrtype, target in mythical_record_tuple_iterator():
    linode.domain_resource_create(domainid=domain_id, type=rrtype, name=name, target=target)


Other languages may require semicolons.

_________________
Code:
/* TODO: need to add signature to posts */


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


Who is online

Users browsing this forum: No registered users and 4 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:  
RSS

Powered by phpBB® Forum Software © phpBB Group