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

Kevin Darcy kcd at daimlerchrysler.com
Wed Jan 3 01:07:45 UTC 2001


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

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.

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


- 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