> I have read books and learned all about how DNS works but I can't find a
> good example on Virtual Hosting with one IP address.
> I'm assuming the files "named.boot" and "named.conf" are the files I
> need to focus on.
I think its a web configuration issue. All that DNS can do is assign the
hosts to an IP address. It won't be able to determing port addressing or
anything like that.
Quote:> I have over 10 virtual hosts on one IP address.
Are they all on the same domain name, or separate domain names?
If all on the same domain name, then you just need to create one zone file
(for the domain name), with the following host records:
foo.com. IN A 10.0.0.1
host1 IN CNAME foo.com.
host2 IN CNAME foo.com.
host3 IN CNAME foo.com.
That will map host1.foo.com to point to 10.0.0.1, host2.foo.com to
10.0.0.1, etc.
If they are all separate domain names, then create a zone file for each
one and have an A record pointing to the IP address.
Then configure your web server (if Apache 1.3.3+) like such for each
virtual host:
NameVirtualHost ##.##.##.##
<VirtualHost host.some_domain.com>
DocumentRoot /www/docs/host.some_domain.com
ServerName host.some_domain.com
ErrorLog logs/host.some_domain.com-error_log
TransferLog logs/host.some_domain.com-access_log
</VirtualHost>
> Anyone willing to help me out on this is a life saver. I just want one
> good example and I'm a happy man!
> Thanks in advance.
--
Alex Kamantauskas
Tugger Networks