Secodary (Slave) Server and updating a zone with two views.

Secodary (Slave) Server and updating a zone with two views.

Post by Witold Baryl » Thu, 26 Jun 2003 23:24:04



Hello world!,

I have two bind server in LAN.
First (dns1) has one internet interface, and second (dns2) has another
interface to internet (from antoher ISP), becouse they are also
routers.

I have some domain, ie. xx.pl.
And i have for it two views on the dns1.

view "internal" {
        match-clients { xxlan; 127.0.0.0/24; };
        recursion yes;
....

        zone "xx.pl" {
                type master;
                notify yes;
                allow-transfer { zaufani; };
                file "/etc/bind/master/db.xx.pl-internal";

Quote:}

view "external" {
        match-clients { any; };
        recursion no;
.....
        zone "xx.pl" {
                type master;
                notify no;                      
//???????????????????
                allow-transfer { zaufani; };
                file "/etc/bind/master/db.xx.pl-external";
        };

Quote:}

My db.xx.pl-internal have ie.
                        NS  10.0.1.1
                        NS  10.0.2.1
.....
paul            86400   IN  A   217.94.139.201
                        IN       A       10.0.1.1
                        IN      A       10.0.89.1
.....

and db.xx.pl-external, ie.
                        NS  10.0.1.1
                        NS  10.0.2.1
                        NS  217.53.12.54
....
paul        86400   IN  A   217.94.139.201
....

i have also some sortlists, ie.
....
    { //blok2 siec
        10.0.3/24;
        {
            10.0.3/24;
            10.0.99/24;
            10.0.1/24;
            {
                10.0.0/24;
                10.0.2/24;
            };
        };
    };
    { //router idaho w blok2
        10.0.99.3;
        {
            10.0.99/24;
            10.0.3/24;
            10.0.1/24;
            {
                10.0.0/24;
                10.0.3/24;
            };
        };
    };
    { //rest
        any;
        {
            217.98.189.207;
            external_ips;
        };
    };

My question is:

How reconfigure this two servers (dns1, dns2, and maybe compleatly
external serwer, that will be provide only "external" view of xx.pl
zone) for working, how i want?

I want for working a updating zones. ( Mayby transfer by ftp ? )

Reagreds,
--


 
 
 

Secodary (Slave) Server and updating a zone with two views.

Post by Mark_Andr.. » Fri, 27 Jun 2003 07:41:22


http://www.isc.org/products/BIND/FAQ.html

> Hello world!,

> I have two bind server in LAN.
> First (dns1) has one internet interface, and second (dns2) has another
> interface to internet (from antoher ISP), becouse they are also
> routers.

> I have some domain, ie. xx.pl.
> And i have for it two views on the dns1.

> view "internal" {
>         match-clients { xxlan; 127.0.0.0/24; };
>         recursion yes;
> ....

>         zone "xx.pl" {
>                 type master;
>                 notify yes;
>                 allow-transfer { zaufani; };
>                 file "/etc/bind/master/db.xx.pl-internal";
> }

> view "external" {
>         match-clients { any; };
>         recursion no;
> .....
>         zone "xx.pl" {
>                 type master;
>                 notify no;                      
> //???????????????????
>                 allow-transfer { zaufani; };
>                 file "/etc/bind/master/db.xx.pl-external";
>         };

> }

> My db.xx.pl-internal have ie.
>                         NS  10.0.1.1
>                         NS  10.0.2.1
> .....
> paul            86400   IN  A   217.94.139.201
>                         IN       A       10.0.1.1
>                         IN      A       10.0.89.1
> .....

> and db.xx.pl-external, ie.
>                         NS  10.0.1.1
>                         NS  10.0.2.1
>                         NS  217.53.12.54
> ....
> paul        86400   IN  A   217.94.139.201
> ....

> i have also some sortlists, ie.
> ....
>     { //blok2 siec
>         10.0.3/24;
>         {
>             10.0.3/24;
>             10.0.99/24;
>             10.0.1/24;
>             {
>                 10.0.0/24;
>                 10.0.2/24;
>             };
>         };
>     };
>     { //router idaho w blok2
>         10.0.99.3;
>         {
>             10.0.99/24;
>             10.0.3/24;
>             10.0.1/24;
>             {
>                 10.0.0/24;
>                 10.0.3/24;
>             };
>         };
>     };
>     { //rest
>         any;
>         {
>             217.98.189.207;
>             external_ips;
>         };
>     };

> My question is:

> How reconfigure this two servers (dns1, dns2, and maybe compleatly
> external serwer, that will be provide only "external" view of xx.pl
> zone) for working, how i want?

> I want for working a updating zones. ( Mayby transfer by ftp ? )

> Reagreds,
> --



--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia


 
 
 

1. Zone File Not Updating on Slave Server

I am having issues with my slave name server not updating a particular zone
file from the primary name server.  I have made sure that the serial number
of the zone file on the primary server is bigger than the serial number of
the zone on the slave.  I have attempted to force a zone transfer (using
"named-xfer" and the "-s 0" flag).  I have added the "allow-transfer" lines
to each named.conf file with the required IP addresses of the other name
servers.  I have even renamed the zone to try and force the slave server to
find and transfer the file from the primary server.  Even though I have
restarted named on both servers before trying any of the above options,
nothing seems to work.

Is there anything I'm missing?  Perhaps some simple solution I'm
overlooking?  Any help would be greatly appreciated.

Thanks,
Geoff Freimark

2. os x 10.2.4 disconnects os 9.2 clients

3. Slave Zone not Updating......

4. FP2K not saving changes to forms

5. slave to slave zone transfers HOWTO?

6. Using Port addresses??

7. ActiveSynch (Guest)?

8. slave to slave zone transfer

9. Views - Slave Server Problem

10. PTR zone at slave servers (is this smart or ridiculus)

11. bind 9.2.2 rc1 slave zone expired immediatelly after the server starts