On Fri, Nov 26, 1999 at 02:08:48AM +0100, [EMAIL PROTECTED] wrote:
> Is there any other solution which avoid mapping of multiple domains to
> the same IP-address and is legal?
If these are kinda "minimal" domains and they're all identical, you can do
something like this:
(this assumes you are using "bind", I don't know about other DNS servers)
Create a file called e.g. "virtualdomains":
; ------------------------------------------------------------------------
@ IN SOA ns.EXAMPLE.COM. hostmaster.EXAMPLE.COM. (
1999112600 ; Serial
28800 ; Refresh
3600 ; Retry
864000 ; Expire
43200 ) ; Minimum
IN NS ns.EXAMPLE.COM.
IN NS ns2.EXAMPLE.COM.
IN NS ns3.EXAMPLE.COM.
IN MX 100 mail.EXAMPLE.COM.
IN A 1.2.3.4
www IN CNAME @
; ------------------------------------------------------------------------
I assume that "EXAMPLE.COM" is not one of the zones you want to apply
this mechanism to.
And now add to bind.conf
// ------------------------------------------------------------------------
zone "virtual1.com" in { type master; file "virtualdomains"; }
zone "virtual2.com" in { type master; file "virtualdomains"; }
zone "virtual3.com" in { type master; file "virtualdomains"; }
// [ ... ]
// ------------------------------------------------------------------------
This is a VERY strict solution.
And please keep in mind also, that MX records may only point to names
that have A records and not to names that are CNAME records. Same for
the NS records.
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Stress is when you wake
Research & Development | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you haven't
D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet.