Forum Moderators: phranque
Is something like this even possible?
It'd just be nice to be able to point EVERY domain I own in godaddy to my only two nameservers and redirect the unused ones automatically.. I assume one can appreciate why!
Thanks!
If you do not configure the domains in your dns server, then the dns server must support this feature (return a forged response for non existent domain names), sometimes referred as NXDOMAIN redirect. If you have that in your dns server, then you should configure it to send back the ip address of your webserver and proceed as described above. Please note that if you configure your dns server like this, all requests for non existent domain names will resolve to this ip address, so if someone request the ip address of www.google.com from your dns server, it will finally end up on your webserver...
I have two nameservers right now.. ns1.mydomain.com and ns2.mydomain.com
how do i set up my apache so that when an account is not active for a given domain.. a default (redirecting) page is shown?
I don't think i should need to add any virtualhosts or extra nameservers.. can I not just show a default page for domains with no account setup?
Thanks in advance!
What it means?
The default one is simply the first VirtualHost defined in your configuration files. So by making a dummy VirtualHost on very top of the other ones, you can display any kind of parked message for domain names (and hosts too), which are not configured in your Apache (and in the cpanel admin) explicitly.
That's the technical explanation of the whole idea, but you have to find out how to implement that (what is possible with your DNS servers, how to make the dummy VirtualHost left intact by cpanel and so on).
I'm not a cpanel user, but if you are looking for an easy solution, then look around cpanel, they might offer this domain parking thing out of the box.