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

Kevin Darcy kcd at daimlerchrysler.com
Wed Jan 3 02:15:45 UTC 2001


Marco Kammerer wrote:

> 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.

You could only do this by defining "www.domain.at" as a "type forward" zone.
But this is not scalable: you'd have to define one zone for *every* name that
you want forwarded. That could make for a very large named.conf file, and lots
of maintenance.

> > 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)

I'm not sure why you say you "have to" do this. There's no requirement for
every domain to have "www", "mail" and "ftp" entries. You could just leave them
out if you wanted to.

> > 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!

If it's just for development, and has nothing to do with the "real world", then
why not pick a totally non-existent top-level domain? You could create
"foo.internal" on your internal nameservers. Why do the names have to be under
".at"? Internally, you can use whatever names you like.


- Kevin

>
>
> 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