Automatically Create Subdomains
Is there some API or interface for me to automatically create subdomains using a script?
I've got creating virtual host records and restarting apache, but need to create DNS records. I think that's all that's left to make it happen. Any suggestions?
Thanks,
-Z.
4 Replies
@jzumbrum:
Hey All,
Is there some API or interface for me to automatically create subdomains using a script?
I've got creating virtual host records and restarting apache, but need to create DNS records. I think that's all that's left to make it happen. Any suggestions?
Thanks,
-Z.
If you are using the Linode DNS service:
If you are using some other DNS solution you'll probably want to send dynamic updates,
If you have a lot, you could use the API as @hawk7000 suggested. Even simpler, you could just create a wildcard DNS record pointing to your server and forget about it.
$ch = curl_init(my_linode_url_with_get_params);
curl_exec($ch);
curl_close($ch);
Worked like a charm, and super easy. Thanks!
can you tell how did you manage to add subdomains using linode? a php scripts.
Thanks a lot.