Setup DNS for domain parking

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Setup DNS for domain parking

Post by GeXus »

I would like to setup my box so that any domain which has my DNS, will automatically be recognized, to where I could have it use domain parking..

So for example, every domain which has my DNS would resolve to one file on my box (ie; every domain will hit /index.php) and from that I can get the domain name and do whatever I want based on the domain....
phpinicial
Forum Newbie
Posts: 3
Joined: Thu Dec 27, 2007 6:36 pm

Post by phpinicial »

I'm looking for that too. Anyone has idea how?
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Post by Inkyskin »

Could this not be done wth virtual hosts in apache conf? I'm sure there must be a wildcard you could use instead of a domain path so that ALL sites that point to that server point to the same location.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

Inkyskin wrote:Could this not be done wth virtual hosts in apache conf? I'm sure there must be a wildcard you could use instead of a domain path so that ALL sites that point to that server point to the same location.
# The first VirtualHost section is used for requests without a known
# server name.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply