Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

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 professional 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 (isc.org/software/bind). –  Mr. Hedgehog Nov 19 '12 at 15:34
2  
We typically don't do product recommendations on ServerFault. –  Brent Pabst Nov 19 '12 at 15:44

1 Answer 1

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.