is this possible !?
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Fri Nov 30 00:09:44 UTC 2001
> hi you !
>
> i have a small company working on webdesign. i have a small server (only
> that one) running several services like apache, squid, mysql ...
>
> now apache is also running some virtual hosts, that is that one apache is
> serving on multiple ip adds different directorys ...
>
> well my server is 192.168.0.3
> my machine is 192.168.0.1 and the other pc here are also all in 192.168.0.x
>
> the virtual hosts of apache are up and running but only as ip ...
>
> what i want is setup bind to map for example
>
> 192.168.1.1 (aliased ip on 192.168.0.3, my server) for project 1 another
> agency1
> 192.168.1.2 (aliased ip on 192.168.0.3, my server) for project 2 from
> agency1
> 192.168.1.3 (aliased ip on 192.168.0.3, my server) for project 3 from
> agency1
> 192.168.1.4 (aliased ip on 192.168.0.3, my server) for project 4 from
> agency1
> ...
>
>
> 192.168.2.1 (aliased ip on 192.168.0.3, my server) for project 1 from
> agency2
> 192.168.2.2 (aliased ip on 192.168.0.3, my server) for project 2 from
> agency2
> ....
>
>
> beside my local workstations in 192.168.0.x ...
>
> that bind shall never be connected to the internet so lets use "adi" as
> tld..
> lets say my server is boss.adi.
> is it possible to create on the one server a dns that can
> project1.agency1.adi
> project2.agency1.adi
> project3.agency1.adi
> ...
>
> project1.agency2.adi
> project2.agency2.adi
> project3.agency2.adi
> ...
>
>
> and my local machines:
> host1.adi
> host2.adi
> host3.adi
>
> and:
> small projects like:
> small1.boss.adi
> small2.boss.adi
> small3.boss.adi
> ...
>
>
>
> i already played around with bind8 but was unable to get it all working. it
> always serverd only one domain like "agency2.adi" with all hosts but nothing
> else...
>
> so my question: is that all possible on only one bind machnine ? if yes, how
> ? any tips ?
> if you want a look at my config i've done so far, i can post them on you
> request.
>
>
> thanks for reading my article :]
>
>
> adrian immler
Yes it is possible. Below is a simple way to do what you want
to do with the minimum of zones.
named.conf:
options {
...
};
zone "." {
type master;
file "root.db";
};
zone "adi" {
type master;
file "adi.db";
};
zone "186.192.in-addr.arpa" {
type master;
file "186.192.in-addr.arpa.db";
};
zone "127.in-addr.arpa" {
type master;
file "127.in-addr.arpa.db";
};
root.db:
$TTL 3600
@ SOA ...
NS ns1.adi.
adi NS ns1.adi.
186.192.in-addr.arpa NS ns1.adi.
127.in-addr.arpa NS ns1.adi.
ns1.adi A ...
adi.db:
$TTL 3600
@ SOA ...
NS ns1.adi.
localhost A 127.0.0.1
ns1 A ...
host1 A 192.168.0.1
project1.boss A ...
project1.agency1 A 192.168.1.1
project2.agency1 A 192.168.1.2
project1.agency2 A 192.168.2.1
186.192.in-addr.arpa.db:
$TTL 3600
@ SOA ...
NS ns1.adi.
1.0 PTR host.adi.
1.1 PTR project1.agency1.adi.
2.1 PTR project2.agency1.adi.
1.2 PTR project1.agency2.adi.
127.in-addr.arpa.db:
$TTL 3600
@ SOA ...
NS ns1.adi.
1.0.0 PTR localhost.
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list