named problem

Kevin Darcy kcd at daimlerchrysler.com
Sat Jul 27 02:11:40 UTC 2002


aggieben at hotmail.com wrote:

> Hi:
>
> I'm using BIND 9.2.0 on a RedHat 7.2 (I think...maybe 7.1) system on a
> small subnet (4 computers) at address 192.168.0.5.  My configuration
> files are located in /var/named.  Here are named.conf and my two zone
> files:
>
> ******** /var/named/named.conf ***************
> zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "pz/127.0.0";
> };
>
> zone "collinsfamily.net" {
>         type master;
>         file "pz/collinsfamily.net";
> };
> *************** EOF ***************************
>
> ************* /var/named/pz/collinsfamily.net *******
> ;
> ; Zone file for collinsfamily.net
> ;
> ; The full zone file
> ;
> $TTL 3D
> @       IN      SOA     ns.collinsfamily.net. hostmaster.collinsfamily.net. (
>                         200206251       ; serial, todays date + todays serial #
>                         8H              ; refresh, seconds
>                         2H              ; retry, seconds
>                         4W              ; expire, seconds
>                         1D )            ; minimum, seconds
> ;
>                 NS      ns              ; Inet address of name server
>                 MX      10 mail.collinsfamily.net.      ; Primary Mail server
> ;
> localhost       A       127.0.0.1
> quigon          CNAME   ns
> ns              A       192.168.0.5
> mail            A       192.168.0.1
> athlon          A       192.168.0.3
> www             CNAME   mail
> obi-wan         CNAME   mail
> benjamin        CNAME   mail
> *********************** EOF *****************************
>
> ************ /var/named/pz/127.0.0 **********************
> $TTL 3D
> @               IN      SOA     ns.collinsfamily.net. hostmaster.collinsfamily.net. (
>                                 1       ; Serial
>                                 8H      ; Refresh
>                                 2H      ; Retry
>                                 4W      ; Expire
>                                 1D)     ; Minimum TTL
>                         NS      ns.collinsfamily.net.
> 1                       PTR     localhost.
> *********************** EOF *****************************
>
> Is there anything obviously wrong with these files?

Offhand, they look syntactically OK to me. Nothing obviously wrong syntactically.

Semantically however:
 1) you wouldn't publish this on the Internet, given the non-routable 192.168.*.*
addresses,
 2) you are required to have at least 2 nameservers

Stylistically, I'm not sure why you use relative names (e.g. "ns") in some places, but
fully-quallified names (e.g. "mail.collinsfamily.net.") in others.


- Kevin




More information about the bind-users mailing list