Trying to set up a secondary, does this look right?

Kevin Darcy kcd at daimlerchrysler.com
Tue Aug 8 19:02:51 UTC 2000


ns1.granitecanyon.com and ns2.granitecanyon.com aren't zones. What are
you trying to accomplish with those slave definitions?

By the way, you don't need "notify yes" in any zones since that's the
default, given that you don't have "notify no" in your options clause.
Also, you really don't even need "notify no" in the "localhost" zone if
your nameserver is the only NS in it.


- Kevin

Scott Kindley wrote:

> OK. I'm trying to setup a secondary DNS server. I'm running Red Hat
> Linux 6.1 with bind-8.2.2_P5-1.
>
> Here's my /etc/named.conf
>
> options {
>         directory "/var/named";
>         forwarders{
>                 207.49.20.4;
>                 207.49.20.5;
>         };
>         listen-on{
>                 207.49.21.11;
>                 127.0.0.1;
>         };
> };
> logging{
>         category lame-servers{
>                 null;
>         };
>         category cname{
>                 null;
>         };
> };
> zone "." {
>         type hint;
>         file "root.cache";
> };
> zone "kindley.net"{
>         type master;
>         file "kindley.net";
>         notify yes;
>         allow-transfer{
>                 205.166.226.38;
>                 209.166.62.198;
>                 127.0.0.1;
>         };
>         allow-update{
>                 205.166.226.38;
>                 209.166.62.38;
>                 127.0.0.1;
>         };
> };
> zone "localhost"{
>         type master;
>         file "named.local";
>         notify no;
>         allow-transfer{
>                 207.49.21.11;
>         };
>         allow-update{
>                 207.49.21.11;
>         };
> };
> zone "0.0.127.IN-ADDR.ARPA"{
>         type master;
>         file "127.0.0";
>         notify yes;
>         allow-transfer{
>                 207.49.21.11;
>         };
>         allow-update{
>                 207.49.21.11;
>         };
> };
> zone "21.49.207.IN-ADDR.ARPA"{
>         type master;
>         file "207.49.21.";
>         notify yes;
>         allow-transfer{
>                 127.0.0.1;
>                 205.166.226.38;
>                 209.166.62.198;
>         };
>         allow-update{
>                 127.0.0.1;
>                 205.166.226.38;
>                 209.166.62.198;
>         };
> };
> zone "ns1.granitecanyon.com"{
>         type slave;
>         file "sec/ns1.granitecanyon.com";
>         masters{
>                 205.166.226.38;
>         };
> };
> zone "ns2.granitecanyon.com"{
>         type slave;
>         file "sec/ns2.granitecanyon.com";
>         masters{
>                 209.166.62.198;
>         };
> };
>
> However I recieve this when I issue this command:
>
> ns1:/etc# named-xfer -z ns1.granitecanyon.com -f
> /var/named/sec/ns1.granitecanyon.com -s 0 205.166.226.38
> named-xfer[27405]: wrong answer in resp from [205.166.226.38], zone
> ns1.granitecanyon.com: [granitecanyon.com IN SOA]
>
> Where am I going wrong here.
>
> Scott






More information about the bind-users mailing list