Static IP resolving in BIND 8.x

Oliver Neumann oliver.neumann at newidentity.de
Wed Feb 6 15:44:07 UTC 2002


"Barry Margolin" <barmar at genuity.net> schrieb im Newsbeitrag
news:a3rhs6$98t at pub3.rc.vix.com...
> In article <a3r58r$6nv at pub3.rc.vix.com>,

> > [...]
> >and I have set up the following zone-file :
> >
> >-x-x- foobar.com.zone -x-x-
> >$TTL    3D
> >@       IN      SOA     foo.foobar.com. root.foo.foobar.com. (
> >                                      2002020601; Serial
> >                                      8H        ; Refresh
> >                                      2H        ; Retry
> >                                      4W        ; Expire
> >                                      1D )      ; Minimum
> >                NS      foo.foobar.com.
> >                MX      10      foo.foobar.com.
>
> NS and MX records must point to primary names, not aliases.

OK, done!

> >foobar    A       100.100.100.100
> >
> >foo    CNAME   foobar
> >-x-x- foobar.com.zone -x-x-
> >
> >So now foo.foobar.com will be resolved to 100.100.100.100 ... that's
clear.
> >But now imagine there is also an www.foobar.com and this domain should be
> >resolved via ROOT-DNS-Server. Can I set up the system that way, that
every
> >*.foobar.com subdomain which cannot be resolved within my zone-file, will
be
> >tried via root-servers?
>
> Instead of:
>
> zone "foobar.com"
>
> do:
>
> zone "foo.foobar.com" {
>   type master;
>   file "foobar.com.zone";
> };
> zone "foobar.foobar.com" {
>   type master;
>   file "foobar.com.zone"; # Yes, the same filename as above
> };
>
> foobar.com.zone should then look like:
>
> @ IN SOA ...
>      NS @
>      MX 10 @
>      A  100.100.100.100

I did that, but this did not work.

Here are the two files :

-x-x- named.conf -x-x-
[...]
zone "foo.foobar.com" IN {
        type master;
        notify no;
        file "foobar.com.zone";
};

-x-x- named conf -x-x-

and

-x-x- foobar.com.zone -x-x-

$TTL    3D
@       IN      SOA     foo.foobar.com. root.foo.foobar.com. (
                                      2002020601; Serial
                                      8H        ; Refresh
                                      2H        ; Retry
                                      4W        ; Expire
                                      1D )      ; Minimum
                NS      @
                MX      10      @

ns      A       100.100.100.100

foo    CNAME   ns

-x-x- foobar.com.zone -x-x-

Any more hints why I get this?

-x-x-
lxserver:/var/named # dig @localhost foo.foobar.com

; <<>> DiG 8.3 <<>> @localhost foo.foobar.com
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;;      foo.foobar.com, type = A, class = IN

;; AUTHORITY SECTION:
foo.foobar.com.  1D IN SOA  foo.foobar.com. root.foo.foobar.com. (
                                        2002020601      ; serial
                                        8H              ; refresh
                                        2H              ; retry
                                        4W              ; expiry
                                        1D )            ; minimum


;; Total query time: 1 msec
;; FROM: lxdev1mz to SERVER: localhost  127.0.0.1
;; WHEN: Wed Feb  6 16:41:23 2002
;; MSG SIZE  sent: 40  rcvd: 81
-x-x-

and

-x-x-
lxserver:/var/named # traceroute foo.foobar.com
traceroute: unknown host foo.foobar.com
-x-x-




More information about the bind-users mailing list