Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 1999 09:35:15 -0800 (PST)
From:      Dan Busarow <dan@dpcsys.com>
To:        Langa Kentane <LKentane@mweb.com>
Cc:        "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: DNS problem (newbie)
Message-ID:  <Pine.BSF.3.96.990225092429.3322F-100000@java.dpcsys.com>
In-Reply-To: <913B8C252194D2119BD500805F318178030486@za12nt02.mweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Feb 1999, Langa Kentane wrote:
> Here goes:
> 
> ;	From: @(#)localhost.rev	5.1 (Berkeley) 6/30/90
> ;	$Id: PROTO.localhost.rev,v 1.4 1997/05/01 21:02:37 ache Exp $
> ;
> ; This file is automatically edited by the `make-localhost' script in
> ; the /etc/namedb directory.
> ;
> 
> @	IN	SOA	wired.impakt.net. root.wired.impakt.net.  (
> 				19990217	; Serial
> 				3600	; Refresh
> 				900	; Retry
> 				3600000	; Expire
> 				3600 )	; Minimum
> 	IN	NS	wired.impakt.net.
> 1	IN	PTR	localhost.impakt.net.

That should be it for db.localhost

The following needs to be in its own zone file, db.impakt.net (or whatever)

@	IN	SOA	wired.impakt.net. root.wired.impakt.net.  (
 				19990217	; Serial
 				3600	; Refresh
 				900	; Retry
 				3600000	; Expire
 				3600 )	; Minimum
 	IN	NS	wired.impakt.net.
 
the SOA section is the same in all zone files if you setup named.conf (or boot)
correctly.

> ; actual host name
> 
> wired		IN A	200.200.200.35		; This host
> net32		IN A	200.200.200.33		;Interface 1 on netware
> net64		IN A 	200.200.200.65		;Interface 2 on netware
> net96		IN A	200.200.200.97		;Interface 3 on netware
> 
> 
> ; aliases
> 
> ewok		IN CNAME	net96		; Netwae server
> www		IN CNAME 	wired		; www server
> mail		IN CNAME	wired		; mail server
> ftp		IN CNAME	wired		; ftp server
> 
> ; mail server for domain
> 
> 

Start another zone, db.200.200.200
You need an SOA record

@	IN	SOA	wired.impakt.net. root.wired.impakt.net.  (
 				19990217	; Serial
 				3600	; Refresh
 				900	; Retry
 				3600000	; Expire
 				3600 )	; Minimum
 	IN	NS	wired.impakt.net.

> 
> $ORIGIN 200.200.200.IN-ADDR-ARPA

No, delete that origin record.

> 	IN NS	wired
> 33	IN PTR	router1
> 65	IN PTR	router2
> 97	IN PTR	router3

Though not strictly true NS records are usually considered part of
the SOA.  Put it there.

You need an entry for 35.  And all the records require fully qualified
domain names.  Your default domain in this file is, like the origin
says, 200.200.200.in-addr.arpa so the expanded entry for your 33 would
be

33 IN PTR router1.200.200.200.in-addr.arpa.

Not likely to be what you want :)
Try

33	IN PTR	router1.impakt.net.
35	IN PTR	wired.impakt.net.
65	IN PTR	router2.impakt.net.
97	IN PTR	router3.impakt.net.

> $ORIGIN 0.0.127.IN-ADDR.ARPA
> 	IN NS	wired.impakt.net
> 1	IN PTR	localhost.impakt.net

What's this for.  You already had correct entries for localhost.

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990225092429.3322F-100000>