Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

closed as off topic by Ward, Dave M, Brent Pabst, Dan, Zoredache Nov 19 '12 at 16:37

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

After chatting with a sysadmin, I've been pointed to BIND ( – Mr. Hedgehog Nov 19 '12 at 15:34
We typically don't do product recommendations on ServerFault. – Brent Pabst Nov 19 '12 at 15:44
up vote 1 down vote accepted

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.

share|improve this answer
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

Not the answer you're looking for? Browse other questions tagged or ask your own question.