VHOSTS and "best practices"
I'm currently hosting a couple of non-profit web sites on a machine that uses DHCP to fetch an IP address, and when I setup DNS for the domain names to point to my server I usually just create an A record.. But in the long run, with a lot of domain names, this isn't a solid solution, because my IP address changes very often.. Anyway, you probably get the picture..
So, I was wondering what is the best practice when configuring DNS for a specific domain name when hosting multiple domain names on the same IP, using name based virtual hosting with apache:
A. Setup the specific domain names as CNAMEs to a domain name that already points to my server
B. Setup the specific domain names as A records, and keep updating all the domain names when my server IP changes
Thanks in advance
- Morten