Automatic generation of subdomains & domain forwarding

Hi there,

as I'm looking here and there different server providers and before reading Linode's server API I would like to pose 2 questions in advance:

1) is it possible to automate the creation of subdomains with a script from a linux server?

Like client1.maindomain.com, client2.maindomain.com, etc. where maindomain.com has been added with the help of a DNS panel most providers do have,

2) even more, is it possible to automate also with a script the forwarding of client's domains bought say from GoDaddy so they can point to my virtual hosts in a linux server?

Say I want client1.com, client2.com, etc that point to my server's ip to be handled by specific virtual hosts in my server.

Thanks,

cent

3 Replies

Regardless of having an API for that (which I really don't know, sorry), you can always install your own DNS server (say, bind9) for that.

1 can be done via the API

2 would be within your VM, adding a virtual host to your webserver config or whatever. that's not something that'd be handled by linode's API, but it's definitely something that you could write code or script to do

@glg:

1 can be done via the API

2 would be within your VM, adding a virtual host to your webserver config or whatever. that's not something that'd be handled by linode's API, but it's definitely something that you could write code or script to do
:) Fine thanks!

Answer 1 opens some very interesting possibilities (comparing with what was able 5 years ago)…Now let's see what API has to say (curl based?)…

Answer 2 should be obvious to me! It's linode's DNS servers that do the work sending requests to client's box; the rest is handled by Apache's virtual hosts etc…thanks for your time.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct