Men and MiceMen and Mice annversary logo

spain france german china

Different domain names in the same reverse-mapping zone.

Answered Friday, November 02, 2001

> Is it possible to host multiple domains using a single subnet of addresses without
> further subneting addresses to create a distinct subnet for each domain? e.g.
>
> create three zones on two name servers (all using addresses from a single
> subnet)
> abc.com
> def.com
> ghi.com
>
> Each zone contains hosts with unique addresses from the single subnet and a
> single reverse lookup zone referencing all of the hosts from each domain.

Sure. Let's say the subnet is 192.168.0/24. You might have zone data files that look something like this:

db.abc.com:

@ IN SOA ...
IN NS ...
foo IN A 192.168.0.1

db.def.com:

@ IN SOA ...
IN NS ...

bar IN A 192.168.0.2

db.ghi.com:

@ IN SOA ...
IN NS ...

baz IN A 192.168.0.3

db.192.168.0:

@ IN SOA ...
IN NS ...

1 IN PTR foo.abc.com.
2 IN PTR bar.def.com.
3 IN PTR baz.ghi.com.

cricket