Multi-domains under one IP

Michael Voight mvoight at cisco.com
Thu Mar 2 19:15:54 UTC 2000


You just configure the same host to address mapping in both zones. You
can do this by simply point to the same zone file. Reverse mapping would
be a bit different as it would require 2 PTR lines in the file for each
address. 

For named.boot:

cache    . db.cache
primary mydomain.com db.mydomain
primary yourdomain.com db.mydomain
primary 4.3.2.in-addr.arpa db.rev

db.mydomain
@        in soa ....soa stuff......
	in ns    ns
bob 	in a 1.2.3.4

So, bob will end up as bob.mydomain.com and bob.yourdomain.com.

db.rev

1  in ptr bob.mydomain.com.
1  in ptr bob.yourdomain.com.


Michael Voight
CSE



Masure David wrote:
> 
> Hi,
> 
> Is it possible for someone to send a config example of let's 2 domains names
> running on the same IP.
> 
> I'd like to have all the file : named.boot, named.conf, reverse, local, and
> the two zones.
> 
> I would really appreciate if someone can do that for me.
> 
> David
> 
> My E-Mail is masdas at hotmail.com
> 
> Thx



More information about the bind-users mailing list