Need help with DNS configuration for my domain...

Jeff Reasoner jeff.reasoner at mail.hccanet.org
Fri Dec 16 14:00:16 UTC 2005


Agreed about checking the logs. Most likely, your other zones aren't
even loading due to syntax errors or out of zone info based on a bad
origin. Logs will show this pretty clearly including the line number
where the problem was encountered.
Just speculating, but one problem may be related to your
2.1.168.192.in-addr.arpa zone. You might think about changing it to
simply db.1.168.192.in-addr.arpa (or even db.192.168.1) and configure
the zone file something like:

$TTL 86400
1.168.192.in-addr.arpa.	SOA dns1.hccanet.org. foo.hccanet.org. (
                                2004030701 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )

                        NS      dns1.hccanet.org.
                        NS      dns2.hccanet.org.
101                     PTR     dns1.hccanet.org.
108                     PTR     webmail2.hccanet.priv.
109                     PTR     FC.hccanet.priv.
11                      PTR     linuxupdate.hccanet.org.

Strictly speaking the name of the file itself doesn't matter, but it may
help keep things clearer.


On Thu, 2005-12-15 at 19:49, Michael Sullivan wrote:
> I set up my BIND configuration using "DNS and BIND, 4th Edition" from
> O'Reilly.  I'm using bind-bind-9.2.5-r6. I was following the examples in
> Chapter 4, substituting my domain for
> the example one.  However, when I use my new DNS server the only thing
> that works correctly is digging 0.0.127.in-addr.arpa.  Every other query
> gets me either NXDOMAIN or SERVFAIL.  Here's the /etc/hosts file I want
> my DNS config based off of:
> 
> 127.0.0.1   localhost.localdomain localhost
> 192.168.1.4 catherine.espersunited.com catherine
> 192.168.1.3 camille.espersunited.com camille
> 192.168.1.2 bullet.espersunited.com bullet
> 
> 
> Here's /etc/bind/named.conf:
> 
> options {
>         directory "/etc/bind";
>         pid-file "/var/run/named/named.pid";
>         };
> 
> zone "espersunited.com" in {
>         type master;
>         file "db.espersunited.com";
>         };
> 
> zone "2.1.168.192.in-addr.arpa." in {
>         type master;
>         file "db.2.1.168.192";
>         };
> 
> zone "0.0.127.in-addr.arpa." in {
>         type master;
>         file "db.127.0.0";
>         };
> 
> zone "." in {
>         type hint;
>         file "db.cache";
>         };
> 
> 
> 
> Here's /etc/bind/db.espersunited.com:
> 
> $TTL 3h
> espersunited.com.  IN SOA bullet.espersunited.com.
> michael.bullet.espersunited.com. (
> 
>    1    ;Serial
>    3h   ;Refresh after 3 hours
>    1h   ;Retry after one hour
>    1w   ;Expire after one week
>    1h ) ;Negative caching TTL of 1 hour
> 
> ;Name server(s)
> espersunited.com. IN NS bullet.espersunited.com.
> 
> ;Host addresses
> 
> localhost.espersunited.com.     IN A 127.0.0.1
> bullet.espersunited.com.        IN A 192.168.1.2
> camille.espersunited.com.       IN A 192.168.1.3
> catherine.espersunited.com.     IN A 192.168.1.4
> 
> ;Aliases
> 
> bullet.espersunited.com.        IN CNAME bullet.espersunited.com.
> camille.espersunited.com.       IN CNAME camille.espersunited.com.
> catherine.espersunited.com.     IN CNAME catherine.espersunited.com.
> 
> 
> Here's db.127.0.0:
> 
> $TTL 3h
> 0.0.127.in-addr.arpa. IN SOA bullet.espersunited.com.
> michael.bullet.espersunited.com. (
> 
>    1    ;Serial
>    3h   ;Refresh after 3 hours
>    1h   ;Retry after one hour
>    1w   ;Expire after one week
>    1h ) ;Negative caching TTL of 1 hour
> 
> ;Name servers
> 0.0.127.in-addr.arpa.   IN NS bullet.espersunited.com.
> 
> ;Host addresses
> 
> 1.0.0.127.in-addr.arpa. IN PTR  localhost.
> 
> 
> Here's db.db.2.1.168.192:
> 
> $TTL 3h
> 2.1.168.192.in-addr.arpa. IN SOA bullet.espersunited.com.
> michael.bullet.espersunited.com. (
> 
>    1    ;Serial
>    3h   ;Refresh after 3 hours
>    1h   ;Retry after one hour
>    1w   ;Expire after one week
>    1h ) ;Negative caching TTL of 1 hour
> 
> ;Name servers
> 2.1.168.192.in-addr.arpa.       IN NS bullet.espersunited.com.
> 
> ;Host addresses
> 
> 2.1.168.192.in-addr.arpa.       IN PTR  bullet.espersunited.com.
> 3.1.168.192.in-addr.arpa.       IN PTR  camille.espersunited.com.
> 4.1.168.192.in-addr.arpa.       IN PTR  catherine.espersunited.com.
> 
> ;Aliases
> 
> bullet.espersunited.com.        IN CNAME bullet.espersunited.com.
> camille.espersunited.com.       IN CNAME camille.espersunited.com.
> catherine.espersunited.com.     IN CNAME catherine.espersunited.com.
> 
> 
> And finally, here's db.cache:
> 
> ;       This file holds the information on root name servers needed to
> ;       initialize cache of Internet domain name servers
> ;       (e.g. reference this file in the "cache  .  <file>"
> ;       configuration file of BIND domain name servers).
> ;
> ;       This file is made available by InterNIC
> ;       under anonymous FTP as
> ;           file                /domain/named.root
> ;           on server           FTP.INTERNIC.NET
> ;       -OR-                    RS.INTERNIC.NET
> ;
> ;       last update:    Jan 29, 2004
> ;       related version of root zone:   2004012900
> ;
> ;
> ; formerly NS.INTERNIC.NET
> ;
> .                        3600000  IN  NS    A.ROOT-SERVERS.NET.
> A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
> ;
> ; formerly NS1.ISI.EDU
> ;
> .                        3600000      NS    B.ROOT-SERVERS.NET.
> B.ROOT-SERVERS.NET.      3600000      A     192.228.79.201
> ;
> ; formerly C.PSI.NET
> ;
> .                        3600000      NS    C.ROOT-SERVERS.NET.
> C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
> ;
> ; formerly TERP.UMD.EDU
> ;
> .                        3600000      NS    D.ROOT-SERVERS.NET.
> D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
> ;
> ; formerly NS.NASA.GOV
> ;
> .                        3600000      NS    E.ROOT-SERVERS.NET.
> E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
> ;
> ; formerly NS.ISC.ORG
> ;
> .                        3600000      NS    F.ROOT-SERVERS.NET.
> F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
> ;
> ; formerly NS.NIC.DDN.MIL
> ;
> .                        3600000      NS    G.ROOT-SERVERS.NET.
> G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
> ;
> ; formerly AOS.ARL.ARMY.MIL
> ;
> .                        3600000      NS    H.ROOT-SERVERS.NET.
> H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
> ;
> ; formerly NIC.NORDU.NET
> ;
> .                        3600000      NS    I.ROOT-SERVERS.NET.
> I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
> ;
> ; operated by VeriSign, Inc.
> ;
> .                        3600000      NS    J.ROOT-SERVERS.NET.
> J.ROOT-SERVERS.NET.      3600000      A     192.58.128.30
> ;
> ; operated by RIPE NCC
> ;
> .                        3600000      NS    K.ROOT-SERVERS.NET.
> K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129
> ;
> ; operated by ICANN
> ;
> .                        3600000      NS    L.ROOT-SERVERS.NET.
> L.ROOT-SERVERS.NET.      3600000      A     198.32.64.12
> ;
> ; operated by WIDE
> ;
> .                        3600000      NS    M.ROOT-SERVERS.NET.
> M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
> ; End of File
> 
> 
> I hope the information I've provided will help you to assist me with
> this problem...
> -Michael Sullivan-
> 
> 
> 
> 
> 



More information about the bind-users mailing list