Creating 'vanity' domain names on the fly.

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi - Any help or pointer on this would be greatly appreciated. I'm
working on something similar to Users sign up and they get
their own webpage, with a domain name of ''.

Since is doing it on the fly (as you sign up), I'm sure
they are doing it programmatically. Anyone has any clue on how they do



Re: Creating 'vanity' domain names on the fly.

On 9 Jul 2005 02:18:48 -0700, wrote:
Quoted text here. Click to load it

That's _not_ a domain name.  That is a _server_ name.  In your example
it would be the server: username on the network at

How the network handles those dymanic server names, then,
is left as an exercise for the student.


Re: Creating 'vanity' domain names on the fly. spilled the following:

Quoted text here. Click to load it

I think it's unlikely they bother registering each new signup - more likely
a wildcard domain - then reading the servername back in the CGI code (PHP
can do this).



Re: Creating 'vanity' domain names on the fly.

Quoted text here. Click to load it

This isn't a domain, it's a host name.

They probably add an entry to their DNS zone when someone signs up.
This does not require the involvement of a registrar since it's
under an already-registered domain.  Generating a DNS zone file out
of a database is not a big deal, especially if they run their own
DNS server.  Any program-driven way of modifying their DNS zone
(it's hosted by Google) would also work.  Lots of DNS hosting
companies provide web pages to let you add/modify/delete entries.
This could be driven by PHP using CURL or various other methods.

They don't seem to be using a wildcard DNS record, which is ugly
but would also work.

Then, either they add the virtualhost to the Apache config file
(they do use Apache), or they let the CGI/PHP look at the hostname
it was called under, or both.

                    Gordon L. Burditt

Site Timeline