DNS server update API

Balinder Walia (11/13/08 12:42PM)
Michael Bond (11/13/08 1:45PM)
Matthias Schmidt (11/13/08 2:01PM)


Balinder Walia (11/13/08 12:42 PM)

<a51631dc0811130442n2a5d3dd5r3104fe70ecbcf54b@...

Does anyone know of a DNS service with developer API which allows to

programmatically add A Record/CNAME to the DNS Server? From 4D or PHP.

When we get a new signup at http://www.jobshout.co.uk, we want to be
able to

automate the process of adding a new sub domain from our system to DNS
using

SOAP or a HTTP REST client etc.

For example:

- A new user sign up say with the site name "wireless" to add a new job

board using 4D based CMS system

- 4D generates all the necessary tokens (html,css,javascript code
etc.) to

create a site like http://wireless.jobshout.co.uk/

- Issue is user can't access the site until we add a sub (A RECORD or
CNAME)

domain wireless.jobshout.co.uk via EasyDNS console manually, we want to

automate the process.

We thought of creating a pool of sub domains like demo.jobshout.co.uk

, demo1.jobshout.co.uk...demoX.jobshout.co.uk and re-use them for new

signups.

Does anyone have a better idea?

Many thanks and I look forward to hear from you.

Balinder

Michael Bond (11/13/08 1:45 PM)

<b3a339610811130545k727604f3heb1a9798c8ed1e46@...

2008/11/13 Balinder Walia <balinder.walia@...

Does anyone know of a DNS service with developer API which allows to

programmatically add A Record/CNAME to the DNS Server? From 4D or PHP.

When we get a new signup at http://www.jobshout.co.uk, we want to be
able to

automate the process of adding a new sub domain from our system to DNS
using

SOAP or a HTTP REST client etc.

For example:

- A new user sign up say with the site name "wireless" to add a new job

board using 4D based CMS system

- 4D generates all the necessary tokens (html,css,javascript code
etc.) to

create a site like http://wireless.jobshout.co.uk/

- Issue is user can't access the site until we add a sub (A RECORD or
CNAME)

domain wireless.jobshout.co.uk via EasyDNS console manually, we want to

automate the process.

We thought of creating a pool of sub domains like demo.jobshout.co.uk

, demo1.jobshout.co.uk...demoX.jobshout.co.uk and re-use them for new

signups.

Does anyone have a better idea?

Many thanks and I look forward to hear from you.

Balinder

Disclaimer: I'm not sure if this will work and I've not tried it
myself.

If you have enough access to the DNS setup then you could use a DNS

wildcard instead of setting up each site invidually. The principle is

described here: http://en.wikipedia.org/wiki/Wildcard_DNS_record

If you are using EasyDNS's Dynamic DNS service then you can find the

API here: http://support.easydns.com/tutorials/dynamicUpdateSpecs.php

(assuming this is the same site) and there is support for wildcards

within it.

Michael Bond

Matthias Schmidt (11/13/08 2:01 PM)

Am/On Thu, 13 Nov 2008 12:42:17 +0000 schrieb/wrote Balinder Walia:

Does anyone know of a DNS service with developer API which allows to

programmatically add A Record/CNAME to the DNS Server? From 4D or PHP.

When we get a new signup at http://www.jobshout.co.uk, we want to be
able to

automate the process of adding a new sub domain from our system to DNS
using

SOAP or a HTTP REST client etc.

For example:

- A new user sign up say with the site name "wireless" to add a new job

board using 4D based CMS system

- 4D generates all the necessary tokens (html,css,javascript code
etc.) to

create a site like http://wireless.jobshout.co.uk/

- Issue is user can't access the site until we add a sub (A RECORD or
CNAME)

domain wireless.jobshout.co.uk via EasyDNS console manually, we want to

automate the process.

We thought of creating a pool of sub domains like demo.jobshout.co.uk

, demo1.jobshout.co.uk...demoX.jobshout.co.uk and re-use them for new

signups.

Does anyone have a better idea?

if the dns is accessible via SSH or AFP with root access on your local

network or the local dmz you could create the files for Bind on the fly

and reload the settings. That would require of course, that you keep

your whole dns setup in the database, as soon as something is changing,

the files are recreated and bind gets forced to reload the files.

This probably won't work with a dns provider like easy dns, but you

might be able to push the settings via http, as you do when you use the

browser. For doing so, you probably need to talk to them.

cheers,

Matthias

------------------------------------------------------------------------

Admilon Consulting GmbH

Am Wiesengrund 9a, 90584 Allersberg, Germany

Geschäftsführer: Peter Frank, Matthias Schmidt

Amtsgericht Nürnberg: HRB 21750

Tel.: +49-9174 - 6646 Fax: +49-9174 - 6647

<http://www.admilon-consulting.de>

Reply to this message

Summary created 11/13/08 at 8:51AM by Intellex Corporation

Comments welcome at: feedback@intellexcorp.com