A question about BIND
Kimi Ostro
kimimeister at gmail.com
Sun Jun 26 15:06:26 UTC 2005
On 6/26/05, Ole Jon Bj=F8rkum <objorkum at gmail.com> wrote:
> I want to use one BIND server to be a DNS server for my internal
> network and my internet domains.
>=20
> So for example when an internal client asks for the IP of
> www.domain.com it gets:
>=20
> 192.168.1.14
>=20
> But when an internet client asks for the IP of www.domain.co it gets:
>=20
> 217.149.2.4
>=20
> (Just made some IPs)
>=20
> How can I do that?
>=20
> Thanks.
>=20
>=20
>=20
you could run either two seperate nameservers (better), a split dns
(cheaper) using views.
named.conf:
# Split DNS
view "local" {
match-clients { "192.168.1.0/24"; };
recursion yes;
zone {
type master;
file "internal/master.domain.com";
};
};
view "external" {
match-clients { "any"; };
recursion no;
zone {
type master;
file "external/master.domain.com";
};
}
http://www.zytrax.com/books/dns/ch7/view.html
--=20
Kimi
More information about the bind-users
mailing list