Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 1997 14:10:45 -0800 (PST)
From:      Dan Busarow <dan@dpcsys.com>
To:        Dave Richards <dar@mail.dit.tec.co.us>
Cc:        questions@FreeBSD.org
Subject:   Re: DNS question/lame server
Message-ID:  <Pine.UW2.3.95.970315135425.15369C-100000@cedb>
In-Reply-To: <Pine.BSF.3.91.940314231256.1913A-100000@mail.dit.tec.co.us>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Mar 1994, Dave Richards wrote:
> Hi everyone, I have what is probably a nasty DNS question.... none of
> the documentation I've read, including the O'Reilly 'DNS & BIND' book,
> seems to cover my case for setting up named. I've already checked

Nothing special about your case that I can see.  Re-read chapter
2 in DNS and BIND, specifically the section on Mapping Addresses
to Names.

> ======================================
> bash# vi  /etc/namedb/named.boot
> 
> directory       /etc/namedb
> 
> ; type          domain                  source host/file        backup 
> file
> 
> primary         0.0.127.IN-ADDR.ARPA    localhost.rev
> primary         dit.tec.co.us           dit.tec.co.us
> cache           .                       named.root

You are missing the line for your reverse DNS

primary           1.38.209.in-addr.arpa   db.209.38.1

> ========================================
> bash# vi  /etc/namedb/dit.tec.co.us
> 
> @       IN      SOA     dit.tec.co.us. root.dit.tec.co.us.  (
>                                 8       ; Serial
>                                 3600     ; Refresh
>                                 300     ; Retry
>                                 3600000 ; Expire
>                                 3600 )  ; Minimum
>                                 IN      NS      ns1.dit.tec.co.us.
>                                 IN      NS      ns2.dit.tec.co.us.
> dit.tec.co.us.                  IN      A       209.38.1.2
> dit.tec.co.us.                  IN      MX      10 mail.dit.tec.co.us.
> ditinet                         IN      A       209.38.1.254
> mail                            IN      A       209.38.1.2
> www                             IN      A       209.38.1.1
> ns1                             IN      CNAME   mail
> ns2                             IN      CNAME   www
> ftp                             IN      CNAME   www
> ii_dit_mis                      IN      A       209.38.1.3
> ii_dit_edu                      IN      A       209.38.1.4
> ditwan                          IN      A       204.56.53.254
> 254.1.38.209.in-addr.arpa.      IN      PTR     ditinet.dit.tec.co.us.
> 221.1.38.209.in-addr.arpa.      IN      PTR     ppp-1.dit.tec.co.us.
> 2.1.38.209.in-addr.arpa.        IN      PTR     mail.dit.tec.co.us.
> 1.1.38.209.in-addr.arpa.        IN      PTR     www.dit.tec.co.us.
> 1.1.38.209.in-addr.arpa.        IN      PTR     ftp.dit.tec.co.us.
> 3.1.38.209.in-addr.arpa.        IN      PTR     ii1.dit.tec.co.us.
> 4.1.38.209.in-addr.arpa.        IN      PTR     ii2.dit.tec.co.us.
> 254.53.56.204.in-addr.arpa.     IN      PTR     ditwan.dit.tec.co.us.

Take these PTR records out of this zone file.  This file contains
the data for the domain dit.tec.co.us, not 1.38.209.in-addr.arpa

Move the PTR records to db.209.38.1 and include an SOA identical
to the one you use here and the NS lines too.

Remember to change your serial numbers and restart named, life will
be good. :)

Dan
-- 
 Dan Busarow                                                  714 443 4172
 DPC Systems / Beach.Net                                    dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.UW2.3.95.970315135425.15369C-100000>