Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.


Our users have the ability to buy a domain (eg: and make it point to out website, (eg:, by simply pointing to ns1/ .


So far everything's good, however, does not like this; we need to set up WHM/cpanel to make the server accept . Problem is, we'd rather made this automatic, possibly without having to use WHM API.

The question

We need some sort of "catch-all" wildcard entry so that we capture all of our user's possible domains.

share|improve this question

3 Answers 3

OK, after searching and get a flat "no" from HostGator, I seem to have found what I need. This is called parked domains, and thanks to WHM/cpanel, they can be created and managed through API.

More info here:

share|improve this answer

Assuming you are using bind, you just need to generate a new zonefile and drop it into the appropriate directory (remember to update the sn in the SOA) then send bind a HUP, e.g.

kill -HUP `cat /var/run/named/`

However if you are bypassing the control panel then you'll need to think about how you allow the user to maintain the details.


share|improve this answer
Sorry, sounds a lot of chinese to me...except the HUP part. Thought I should mention I'm no seasoned sysadmin :). Edit: I know what bind is but I don't know what you mean by zone file nor updating SOA. – Christian Jul 14 '10 at 13:17

If you are using virtual hosting you can have the default domain point to

Now all anything hits ip addess will load unless there is a vhost entry for it.

Add a server alias in vhost file for - will show as

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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