Getting bind to know something, what ist not in his zone

Marco Kammerer m.kammerer_SL at gmx.at
Wed Jan 3 01:30:23 UTC 2001


Thank you Kevin for answering so fast.

see my comments ...
>
> Master zones override forwarding. If you have an "at" master zone defined,
> you'll never forward for anything in "at", unless you specifically add
zones
> of "type forward" underneath "at" (for example, a zone of type forward for
> "123123abc.at").
but i tought possibly there is a way to switch forwarding back on, when no
entry was found in the local zone file.
like  uuuu there is only local.domain.at lets see for www.domain.at at the
isp dns.

> I think what you want to do is, instead of defining "at", define your
internal
> domain(s) at the lowest level possible, so that forwarding will still work
for
> "at". Note however, that since there is already a "domain.at" on the
Internet,
> if you define an internal "domain.at", this internal zone will hide the
real
> "domain.at" names.
hmmm ok, but if i definde a zone domainbbb.at than i have to add in my local
dns

www    extern ip
mail        extern ip
ftp         extern ip
local    intern ip

so i have to do the tripple work (see below)


> Perhaps you should register a *unique* domain for internal use so that you
> don't collide with anything that's already out there.

that is not really possible, because i only make a local.domainabc.at if i
have the www.domainabc.at.
Reason: Development!

If i am not able to get it working , i forget the dns and i switch back to
my hosts files! just entering what I need.
the only bad thing about it is, that we have about 7 pcs where i have to do
it all the time. That is why i though about a dns!

Marco

>
> - Kevin
>
> Marco Kammerer wrote:
>
> > HI
> >
> > for my private lan i set up a dns running p7
> >
> > I made a zone "at" and i wanted bind to return 192.168.66.3 (for the
> > internal lan) when it gets asked for "local.domain.at".
> >
> > That was working.
> >
> > But when I asked my bind for example www.domain.at or www.123123abc.at
it
> > did return a answer. (because i have no entry in my "at" file) !!! BUT I
> > HAVE SET THE FORWARD INFORMATION!
> >
> > Is there a possibility to get it running or do i have to make a second
dns?
> > one for forwarding www stuff and another that answers the local stuff?
> >
> > Thanks for helping
> >
> > CU marco
> >
> > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> >  /etc/named.conf
> > // This is a configuration file for named (from BIND 8.1 or later).
> > // It would normally be installed as /etc/named.conf.
> >
> > options {
> >  directory "/var/named";
> >
> >  forwarders {
> >   123.45.11.11;
> >   123.45.11.10;
> >   };
> >
> > };
> >
> > zone "." {
> >  type hint;
> >  file "root.hint";
> > };
> >
> > zone "at" {
> >  notify no;
> >  type master;
> >  file "pz/at";
> > };
> >
> > zone "66.168.192.in-addr.arpa" {
> >  notify no;
> >  type master;
> >  file "pz/192.168.66";
> > };
> >
> > zone "0.0.127.in-addr.arpa" {
> >  type master;
> >  file "pz/127.0.0";
> > };
> >
> > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > /var/named/pz/at
> >
> > $TTL 3D
> > @               IN      SOA     ns1local.domain.at. support.domain.at. (
> >     200101021 ; serial, todays date + todays serial
> >                                 8H        ; Refresh
> >                                 2H        ; Retry
> >                                 4W        ; Expire
> >                                 1D )      ; Minimum TTL
> > ;
> >                    NS      ns1local.domain.at.
> > ;
> > localhost  A 127.0.0.1
> >
> > ns1local.domain  A 192.168.66.3
> >
> > local.domain A 192.168.66.3
> >
> > local.domain2 A 192.168.66.4
> >
> > local.domain3 A 192.168.66.5
> >
> > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > /var/named/192.168.66
> >
> > $TTL 3D
> > @  IN SOA nsllocal.domain.at. support.domain.at. (
> >     2001010202       ; Serial
> >     8H      ; Refresh
> >     2H      ; Retry
> >     4W      ; Expire
> >     1D )    ; Minimum TTL
> >    NS      ns1local.domain.at.
> >
> > 3   PTR ns1local.domain.at.
> >
> > 3   PTR local.domain.at.
> > 4   PTR local.domain2.at.
> > 5   PTR local.domain3.at.
> >
> > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > /var/named/127.0.0
> >
> > $TTL 3D
> > @  IN SOA ns1local.domain.at. support.domain.at. (
> >     1       ; Serial
> >     8H      ; Refresh
> >     2H      ; Retry
> >     4W      ; Expire
> >     1D )    ; Minimum TTL
> >
> >    IN NS      ns1local.domain.at.
> >
> > 1   PTR     localhost.
>
>
>
>
>




More information about the bind-users mailing list