Adding domains to automagicly. Linode API or work around???
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!
1 Reply
domain.createdomain.resource.create
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.