1/* 2 * Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC") 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14 * PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17view one { 18 notify master-only; 19 20 # also-notify inconsistent with master-only notify option 21 zone "slave" { 22 type slave; 23 masters { 1.2.3.4; }; 24 also-notify { 5.6.7.8; }; 25 }; 26 27 # OK 28 zone "master" { 29 type master; 30 file "filename"; 31 also-notify { 5.6.7.8; }; 32 }; 33}; 34 35view two { 36 notify no; 37 38 # also-notify inconsistent with notify option at the view level 39 zone "slave" { 40 type slave; 41 masters { 1.2.3.4; }; 42 also-notify { 5.6.7.8; }; 43 }; 44 45 # OK 46 zone "master" { 47 type master; 48 file "filename"; 49 notify yes; 50 also-notify { 5.6.7.8; }; 51 }; 52}; 53 54view three { 55 # also-notify inconsistent with notify option at the zone level 56 zone "slave" { 57 type slave; 58 masters { 1.2.3.4; }; 59 notify no; 60 also-notify { 5.6.7.8; }; 61 }; 62 63 # OK 64 zone "master" { 65 type master; 66 file "filename"; 67 also-notify { 5.6.7.8; }; 68 }; 69}; 70 71view four { 72 also-notify { 5.6.7.8; }; 73 74 # OK 75 zone "slave" { 76 type slave; 77 masters { 1.2.3.4; }; 78 notify master-only; 79 }; 80 81 # OK 82 zone "master" { 83 type master; 84 file "filename"; 85 notify no; 86 }; 87}; 88