I am setting up Virtual Hosts on an Apache server on Redhat Linux. I know how to create Virtual Hosts and the difference between name-based and ip-based hosts. However, before I decide which to use, I have a question. One of the virtual hosts is from a different domain. So, if I use an ip-based virtual host and add the ip using ifconfig, then set up the virtual host in httpd.conf, do I need to ask the other domain to modify their DNS?
I know that I would have to do that for a name-based host. Since the domain belongs to someone else, I would have to ask them to modify their DNS to show that name resolving to an ip in our domain.
Here is a quote from the Apache page about virtual hosts:
"Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your web site. You can put entries in your hosts file for local testing, but that will work only from the machine with those hosts entries."
I know that I would have to do that for a name-based host. Since the domain belongs to someone else, I would have to ask them to modify their DNS to show that name resolving to an ip in our domain.
Here is a quote from the Apache page about virtual hosts:
"Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those host names. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your web site. You can put entries in your hosts file for local testing, but that will work only from the machine with those hosts entries."