-2

I have a domain and a web-app written in PHP running on Ubuntu 12.04. When a user registers, I would like to give that user a unique subdomain which needs to resolve to an IP independently of the website (meaning I can't just do a redirect with a wildcarded subdomain).

I'm guessing I need to run a local nameserver to make this possible. Could anyone recommend some nameserver software that would allow me to achieve this?

Thanks.

Mr. Hedgehog
  • 128
  • 7

1 Answers1

1

PowerDNS or myDNS should help achieve this, they both work with MySQL and a number of other databases, so inserting records from PHP is easily done. Bind is also an option however writing out/updating zone records for bind from PHP is somewhat harder.

Flash
  • 1,310
  • 7
  • 13
  • 1
    Thank you Flash - that's a really helpful answer. I think I'll avoid ServerFault in the future though. Seems you have to know the answer to ask the question. – Mr. Hedgehog Nov 20 '12 at 12:41