Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 08:21:07 -0500
From:      Len Conrad <LConrad@Go2France.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: DNS config
Message-ID:  <5.1.0.14.2.20020721081245.04bd7ec0@mail.Go2France.com>
In-Reply-To: <1244.192.168.1.4.1027256860.squirrel@webmail.probsd.ws>

next in thread | previous in thread | raw e-mail | index | archive | help

>I am taking a stab at running DNS , and have been reading some on it
>today.But, I wanted to touch base with some on the list to see if my
>thinking is correct before I deploy this.
>I am going to run named in a
>Jail() on 192.168.1.6 and my Internet IP is 66.26.7.34.

rr is authoritative for your class C:

Mgw1# dig -x 66.26.7

; <<>> DiG 8.3 <<>> -x
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;;      7.26.66.in-addr.arpa, type = ANY, class = IN

;; ANSWER SECTION:
7.26.66.in-addr.arpa.   59m38s IN NS    ns1.ec.rr.com.
7.26.66.in-addr.arpa.   59m38s IN NS    ns2.ec.rr.com.
7.26.66.in-addr.arpa.   59m38s IN SOA   ns1.ec.rr.com. RRAdm.ec.rr.com. (
                                         11              ; serial
                                         1H              ; refresh
                                         10M             ; retry
                                         1D              ; expiry
                                         1H )            ; minimum


;; AUTHORITY SECTION:
7.26.66.in-addr.arpa.   59m38s IN NS    ns1.ec.rr.com.
7.26.66.in-addr.arpa.   59m38s IN NS    ns2.ec.rr.com.

;; ADDITIONAL SECTION:
ns1.ec.rr.com.          59m49s IN A     24.93.67.126
ns2.ec.rr.com.          59m49s IN A     24.93.67.127

>  For named.conf,
>I have:
>
>zone "0.0.127.IN-ADDR.ARPA" {
>          type master;
>          file "localhost.rev";
>};
>zone "1.168.192.in-addr.arpa" {
>          type master;
>          file "192.168.1.in-addr.arpa.conf";
>};

... no need

>zone "my-domain.com" {
>          type master;
>          file "my-domain.conf";
>};

the naming conventions in the O'Reilly DNS & BIND book are worth following

named.conf is a config file, for named in this case

db.mydomain.com is a database file

>My questions are this, would I use 7.26.66.in-addr.arpa INSTEAD of

If the DNS authoritative for your subnet has not delegated reverse zone 
authority for your subnet to your DNS, there's no need, other than 
learning, to bother with the reverse zone file.  Internet won't query your 
DNS for the reverse zone.

For your ip, the reverse delegation is with rr, not you, and there is a PTR 
record:

Mgw1# dig -x 66.26.7.34

; <<>> DiG 8.3 <<>> -x
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;;      34.7.26.66.in-addr.arpa, type = ANY, class = IN

;; ANSWER SECTION:
34.7.26.66.in-addr.arpa.  1H IN PTR  ilm26-7-034.ec.rr.com.

;; AUTHORITY SECTION:
7.26.66.in-addr.arpa.   1H IN NS        ns1.ec.rr.com.
7.26.66.in-addr.arpa.   1H IN NS        ns2.ec.rr.com.

;; ADDITIONAL SECTION:
ns1.ec.rr.com.          1H IN A         24.93.67.126
ns2.ec.rr.com.          1H IN A         24.93.67.127

>Second, why is the 0.0.127 zone "
>IN-ADDR.ARPA" capitalized where the others arent?  The stock named.conf
>has it this way and I am just curious.

all the named.conf and db.zonefiles, as are DNS hostnames in general, are 
case-insensitive.

Len


__________________________________________________________________
www.menandmice.com/DNS-training : DNS Training
BIND8NT.MEIway.com : ISC BIND for NT4 & W2K
IMGate.MEIway.com  : Build free, hi-perf, anti-abuse mail gateways


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?5.1.0.14.2.20020721081245.04bd7ec0>