Read the error message.  It will tell you where a write instance
is and a read instance is or where two write instances are.  In
this case it is on lines 7 and 3 of junk.conf (junk.conf:7 and
junk.conf:3).

        % cat junk.conf
        zone "a" IN {
                type master;
                file "x";
        };
        zone "b" {
                type slave;
                file "x";
                masters { 1.1.1.1; };
        };
        % named-checkconf junk.conf
        junk.conf:7: writeable file 'x': already in use: junk.conf:3
        % 

And a example of a shared master file being processed cleanly.

        % cat shared.conf
        zone "a" IN {
                type master;
                file "x";
        };
        zone "b" {
                type master;
                file "x";
        };
        % named-checkconf shared.conf
        % 

Mark

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: ma...@isc.org
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to