#1  
Old 28th July 2006, 16:45
tetsuo44 tetsuo44 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with named.conf.master

i've modified the named.conf.master to add support off view.
problem : when i save configuration zone are duplicated in each view......
so if i create a zone toto.titi.org it appears twice in both external and internal view.... any idea ?

here is the template :
Code:
acl "xfer" {
        127.0.0.1;
};

acl "trusted" {
        127.0.0.1;
};

options {
        pid-file "/var/run/bind/run/named.pid";
        directory "{BINDDIR}";
        auth-nxdomain no;
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;

        allow-transfer {
                xfer;
        };

        allow-query {
                trusted;
        };

};

view "internal-in" in {
	// Our internal (trusted) view. We permit the internal networks
	// to freely access this view. We perform recursion for our
	// internal hosts, and retrieve data from the cache for them.

	match-clients { trusted; };
	recursion yes;
	additional-from-auth yes;
	additional-from-cache yes;
	allow-query {
		any;
	};

	allow-transfer {
		any;
	};

	// prime the server with knowledge of the root servers
	zone "." {
		type hint;
		file "db.root";
	};

	// be authoritative for the localhost forward and reverse zones, and for
	// broadcast zones as per RFC 1912

	zone "localhost" {
		type master;
		file "db.local";
	};

	zone "127.in-addr.arpa" {
		type master;
		file "db.127";
	};

	zone "0.in-addr.arpa" {
		type master;
		file "db.0";
	};

	zone "255.in-addr.arpa" {
		type master;
		file "db.255";
	};

        <!-- BEGIN DYNAMIC BLOCK: named_reverse -->
        zone "{ZONE}.in-addr.arpa" {
                type master;
                file "pri.{ZONE}.in-addr.arpa";
        };
        <!-- END DYNAMIC BLOCK: named_reverse -->

        <!-- BEGIN DYNAMIC BLOCK: named -->
        zone "{DOMAIN}" {
                type master;
                file "pri.{DOMAIN}";
                allow-query { any; };
        };
        <!-- END DYNAMIC BLOCK: named -->

        <!-- BEGIN DYNAMIC BLOCK: named_slave -->
        zone "{DOMAIN}" {
                type slave;
                file "sec.{DOMAIN}";
                masters { {MASTERS}; };
        };
        <!-- END DYNAMIC BLOCK: named_slave -->
};

view "external-in" in {
	// Our external (untrusted) view. We permit any client to access
	// portions of this view. We do not perform recursion or cache
	// access for hosts using this view.

	match-clients { any; };
	recursion no;
	additional-from-auth no;
	additional-from-cache no;
	// Link in our zones
	// prime the server with knowledge of the root servers
	zone "." {
		type hint;
		file "db.root";
	};

	// be authoritative for the localhost forward and reverse zones, and for
	// broadcast zones as per RFC 1912

        <!-- BEGIN DYNAMIC BLOCK: named_reverse -->
        zone "{ZONE}.in-addr.arpa" {
                type master;
                file "pri.{ZONE}.in-addr.arpa";
        };
        <!-- END DYNAMIC BLOCK: named_reverse -->

        <!-- BEGIN DYNAMIC BLOCK: named -->
        zone "{DOMAIN}" {
                type master;
                file "pri.{DOMAIN}";
                allow-query { any; };
        };
        <!-- END DYNAMIC BLOCK: named -->

        <!-- BEGIN DYNAMIC BLOCK: named_slave -->
        zone "{DOMAIN}" {
                type slave;
                file "sec.{DOMAIN}";
                masters { {MASTERS}; };
        };
        <!-- END DYNAMIC BLOCK: named_slave -->
};

//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
Reply With Quote
Sponsored Links
  #2  
Old 29th July 2006, 12:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

This happens because you put this block:

Code:
<!-- BEGIN DYNAMIC BLOCK: named_reverse -->
        zone "{ZONE}.in-addr.arpa" {
                type master;
                file "pri.{ZONE}.in-addr.arpa";
        };
        <!-- END DYNAMIC BLOCK: named_reverse -->

        <!-- BEGIN DYNAMIC BLOCK: named -->
        zone "{DOMAIN}" {
                type master;
                file "pri.{DOMAIN}";
                allow-query { any; };
        };
        <!-- END DYNAMIC BLOCK: named -->

        <!-- BEGIN DYNAMIC BLOCK: named_slave -->
        zone "{DOMAIN}" {
                type slave;
                file "sec.{DOMAIN}";
                masters { {MASTERS}; };
        };
        <!-- END DYNAMIC BLOCK: named_slave -->
in both views... It causes ISPConfig to write exactly the same information in both views.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th July 2006, 14:09
tetsuo44 tetsuo44 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

right but this is exactly what i need.
If you use view (to manage acl) you have to write the zone in both view.
The problem is that ispconfig write two time the same zone in both view.
I guess you undestand what i mean.
Reply With Quote
  #4  
Old 30th July 2006, 16:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by tetsuo44
right but this is exactly what i need.
If you use view (to manage acl) you have to write the zone in both view.
The problem is that ispconfig write two time the same zone in both view.
I guess you undestand what i mean.
Yes, I understand, but by putting the same block in both views ISPConfig writes the same data to both views. How is ISPConfig supposed to know which data it should write to which view?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th July 2006, 18:14
tetsuo44 tetsuo44 is offline
Junior Member
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mmmh ... yes i understand, but a block is nothing more than a target for a search and replace action made by the php script. If the replace is global this should not happen. Anyway, the question is "how can i do what i want to do ? "
Reply With Quote
  #6  
Old 30th July 2006, 19:28
todvard todvard is offline
Member
 
Join Date: Aug 2005
Posts: 85
Thanks: 1
Thanked 6 Times in 5 Posts
Default

could you post an example what is your generated named.conf looks like? it would be easier to answer your question...
Reply With Quote
  #7  
Old 31st July 2006, 16:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by tetsuo44
mmmh ... yes i understand, but a block is nothing more than a target for a search and replace action made by the php script. If the replace is global this should not happen.
Again: How is ISPConfig supposed to know which data it should write to which view?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 05:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.