RE: multiple-Directories

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: multiple-Directories

mejaz

 

Dear all.

 

Is there any way where I can configure multiple directories for the zone files, Default one is /var/named/ or /var/named/chroot/var/named.

 

On top I wanted to have one more additional  directory location where I can keep the zones file for VIP  customer   on separate location..

 

In the option section I have tried to give  additional directory as below, but it didn’t worked for me, after that I can’t able to start named service.

 

options {

        listen-on port 53 { 1.1.1.1; };

        listen-on-v6 port 53 { ::1; };

        directory       "/var/named"; "/var/ejaz/named";

        dump-file       "/var/named/data/cache_dump.db";

 

 


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

RE: multiple-Directories

John W. Blue

options {

        listen-on port 53 { 1.1.1.1; };

        listen-on-v6 port 53 { ::1; };

        directory       "/var/named";

        dump-file       "/var/named/data/cache_dump.db";

};

 

Include "/var/ejaz/named/vip_zone";

 

the “vip_zone” file will contain:

 

zone “example1.com” {type master; file “var/ejaz/named/data/example1.com.db”;};

zone “example2.com” {type master; file “var/ejaz/named/data/example2.com.db”;};

zone “example3.com” {type master; file “var/ejaz/named/data/example3.com.db”;};

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Ejaz
Sent: Wednesday, December 23, 2015 11:45 PM
To: [hidden email]
Subject: RE: multiple-Directories

 

 

Dear all.

 

Is there any way where I can configure multiple directories for the zone files, Default one is /var/named/ or /var/named/chroot/var/named.

 

On top I wanted to have one more additional  directory location where I can keep the zones file for VIP  customer   on separate location..

 

In the option section I have tried to give  additional directory as below, but it didn’t worked for me, after that I can’t able to start named service.

 

options {

        listen-on port 53 { 1.1.1.1; };

        listen-on-v6 port 53 { ::1; };

        directory       "/var/named"; "/var/ejaz/named";

        dump-file       "/var/named/data/cache_dump.db";

 

 


_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: multiple-Directories

Grant Taylor
In reply to this post by mejaz
On 12/23/15 22:45, Ejaz wrote:
> Is there any way where I can configure multiple directories for the zone
> files, Default one is /var/named/ or /var/named/chroot/var/named.

Sort of.

The "directory" configuration is where named will start to look for
files that don't use a fully qualified path.

> On top I wanted to have one more additional  directory location where I
> can keep the zones file for VIP  customer   on separate location..

zone "c1d1.tld" {
        type master;
        file "customer1/c1d1.tld.zone";
};

zone "c2d1.tld"
        type master;
        file "customer2/c2d1.tld.zone";
};

zone "c2d2.tld"
        type master;
        file "customer2/c2d2.tld.zone";
};

zone "c3d1.tld"
        type master;
        file "customer3/c3d1.tld.zone";
};

Here you are telling named to look for a customer1 or customer2 or
customer3 subdirectory that is inside the directory specified in
"directory".

You can also use fully qualified paths.

zone "c4d1.tld"
        type master;
        file "/home/customer4/c4d1.tld.zone";
};

zone "c5d1.tld"
        type master;
        file "/opt/someCrazyPath/customer5/c5d1.tld.zone";
};

I often keep master and slave zone files in separate directories under
the named working directory.



--
Grant. . . .
unix || die
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users