public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  bind zone.file won't load
@ 2006-03-04 16:04 Harry Putnam
  2006-03-04 22:51 ` Alexander Kirillov
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Harry Putnam @ 2006-03-04 16:04 UTC (permalink / raw
  To: gentoo-user


Running an authoritative name server on a small home lan as training
exercise. And using DNS and Bind 4th ed as a guide.

A quick sketch of this network(There are more hosts on it
but for simplicity):

(All have prefix 192.168 and netmask 255.255.255.0)

                     INTERNET
                       | (Dynamic IP)
                       |
                    NETGEAR (consumer grade router)
reader                  | 0.20                  fwobsd
  --------------------------------------------------
  | 0.4            | 0.3          | 0.5            | 0.19
  |                |              |                |  
[ m1 ]           [ m2 ]         [ m3 ]           [ m4 ]
  | 1.2                                            | 1.1
  |________________________________________________|
rdmz                                              fwdmz

So I have two networks here.. 192.168.0/24 and 192.168.1/24
M1 and M4 both have 2 nics and addresses in 192.168.0 and 192.168.1
as shown... (if mail doesn't mangle my asci production too bad.)

My problem is how to integrate 192.168.1/24 into my zone.files

The reverse-pointer zone.file for 192.168.1 is where the rub is.
I'm very inexperienced with routing in general and nameservers in
particular .... setting up a home lan nameserver is a training
exercise for me.

Where I get confused is what is the origin `@' for this zone?
Can I use `@' or need to spell out 192.168.1?
What happens to my domain... `local.lan' does it still cover what are
now really two numeric domains 192.168.0 and 192.168.1?

I've tried various combinations in the reverse zone for 192.168.1, but
all I've tried have has one or another problem loading, or being
ignored. 

The reverse file for 192.168.1 is below and at the end .. after names
logs is the db.local.lan zone file.

(naming convention stolen from DNS and Bind (4th ed))

I'll post, at the end the named log output from this zone.file as
an example but as mentioned, I've tried quite a few combinations
unsuccessfully.   I can post them all but hopefully someone will see
the problem I've created.  This one causes the 2 address in 192.168.1
to simply be ignored... other versions have different reasons for not
loading properly.

db.192.168.1
============ 8< snip =================
  $TTL 1D 
  @       IN  SOA  reader.local.lan. reader.reader.local.lan. (
                200405190  ; serial
                28800      ; refresh (8 hours)
                14400      ; retry (4 hours)
                2419200    ; expire (4 weeks)
                86400      ; minimum (1 day)
                )
  ;
  ; Name servers (The name '@' is implied)
  ;
          IN  NS     reader
  ;
  ; Addresses point to canonical names
  ;
  
  192.168.1.2       IN  PTR    rdmz.local.lan.
  192.168.1.1       IN  PTR    fwdmz.local.lan.

====== 8< snip ===========================

[ -ed leaving `@' as is but spelling out canonical IP for the
two on 192.168.1 cause them to be ignored]

  Mar  4 09:59:39 reader named[8959]: pri/db.192.168.1:18: ignoring
    out-of-zone data (192.168.1.2)
  Mar  4 09:59:39 reader named[8959]: pri/db.192.168.1:19: ignoring
    out-of-zone data (192.168.1.1)
  Mar  4 09:59:39 reader named[8959]: zone 1.168.192.in-addr.arpa/IN:
    loaded serial 200405190

=========== [...] ==========

db.local.lan (I think this is close to right at least)
  ======== 8< snip ============================
  $TTL 1D
  @       IN SOA    reader.local.lan.  hostmaster (
                          200405191 ; serial
                          8H        ; refresh
                          4H        ; retry
                          4W        ; expire
                          1D )      ; minimum
  ;; Nameserver (The name '@' is implied)
             IN   NS  reader
  ;; smtp hub (The name '@' is implied)
             IN   MX    10 reader
  ;; addresses for the canonical names
  localhost  IN   A     127.0.0.1
  ansil      IN   A     192.168.0.21
  bjp        IN   A     192.168.0.16
  fw         IN   A     192.168.0.20
  fwobsd     IN   A     192.168.0.19
             IN   A     192.168.1.1	
  harvey     IN   A     192.168.0.22
  mob2       IN   A     192.168.0.3
  reader     IN   A     192.168.0.4
             IN   A     192.168.1.2
  wap        IN   A     192.168.0.50
  
  ;;   aliases
  smtp       IN   CNAME reader
  www        IN   CNAME reader
  tic        IN   CNAME reader
  
  ;;   interface   specific   addresses
  fwdmz      IN   A      192.168.1.1
  rdmz       IN   A      192.168.1.2
  
  ============ 8< snip ==================

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2006-03-06 14:56 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-04 16:04 [gentoo-user] bind zone.file won't load Harry Putnam
2006-03-04 22:51 ` Alexander Kirillov
2006-03-05  4:29   ` [gentoo-user] " Harry Putnam
2006-03-05  4:39   ` Harry Putnam
2006-03-05 10:55     ` Alexander Kirillov
2006-03-05  4:55   ` Harry Putnam
2006-03-05  4:57   ` Harry Putnam
2006-03-05 11:02     ` Alexander Kirillov
2006-03-05 13:07       ` Harry Putnam
2006-03-05 13:38       ` Harry Putnam
2006-03-05 14:06         ` Alexander Kirillov
2006-03-05 14:52           ` Harry Putnam
2006-03-05 17:12             ` Alexander Kirillov
2006-03-05 18:27               ` Harry Putnam
2006-03-05 19:43                 ` Alexander Kirillov
2006-03-05 15:03           ` Harry Putnam
2006-03-06 14:48   ` Harry Putnam
2006-03-05 12:14 ` [gentoo-user] " Jo Are Rosland
2006-03-05 13:29   ` [gentoo-user] " Harry Putnam
2006-03-05 14:55     ` Jo Are Rosland
2006-03-05 15:53       ` Harry Putnam
2006-03-05 16:36 ` [gentoo-user] " Jo Are Rosland
2006-03-05 18:40   ` [gentoo-user] " Harry Putnam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox