Lines Matching refs:NAMED
41 echo_i "failed to kill named ($pidfile)"
59 "${NAMED}" "$@" ${NAMED_DEFAULT_ARGS} >>"$run" 2>&1 &
72 echo_i "verifying that named started normally ($n)"
74 [ -s ns2/named.pid ] || ret=1
75 grep "unable to listen on any configured interface" ns2/named.run >/dev/null && ret=1
76 grep "another named process" ns2/named.run >/dev/null && ret=1
81 echo_i "checking that named refuses to reconfigure if working directory is not writable ($n)"
83 cp ns2/named2.conf ns2/named.conf
87 grep "[^-]directory './nope' is not writable" ns2/named.run >/dev/null 2>&1 || ret=1
92 echo_i "checking that named refuses to reconfigure if managed-keys-directory is not writable ($n)"
94 cp ns2/named3.conf ns2/named.conf
98 grep "managed-keys-directory './nope' is not writable" ns2/named.run >/dev/null 2>&1 || ret=1
103 echo_i "checking that named refuses to reconfigure if new-zones-directory is not writable ($n)"
105 cp ns2/named4.conf ns2/named.conf
109 grep "new-zones-directory './nope' is not writable" ns2/named.run >/dev/null 2>&1 || ret=1
114 echo_i "checking that named recovers when configuration file is valid again ($n)"
116 cp ns2/named1.conf ns2/named.conf
118 [ -s ns2/named.pid ] || ret=1
119 kill_named ns2/named.pid || ret=1
124 echo_i "checking that named refuses to start if working directory is not writable ($n)"
126 testpid=$(run_named ns2 named$n.run -c named2.conf -D runtime-ns2-extra-4)
128 retry_quiet 10 check_named_log "exiting (due to fatal error)" ns2/named$n.run || ret=1
129 grep "[^-]directory './nope' is not writable" ns2/named$n.run >/dev/null 2>&1 || ret=1
130 kill_named ns2/named.pid && ret=1
136 echo_i "checking that named refuses to start if managed-keys-directory is not writable ($n)"
138 testpid=$(run_named ns2 named$n.run -c named3.conf -D runtime-ns2-extra-5)
140 retry_quiet 10 check_named_log "exiting (due to fatal error)" ns2/named$n.run || ret=1
141 grep "managed-keys-directory './nope' is not writable" ns2/named$n.run >/dev/null 2>&1 || ret=1
142 kill_named named.pid && ret=1
148 echo_i "checking that named refuses to start if new-zones-directory is not writable ($n)"
150 testpid=$(run_named ns2 named$n.run -c named4.conf -D runtime-ns2-extra-6)
152 retry_quiet 10 check_named_log "exiting (due to fatal error)" ns2/named$n.run || ret=1
153 grep "new-zones-directory './nope' is not writable" ns2/named$n.run >/dev/null 2>&1 || ret=1
154 kill_named ns2/named.pid && ret=1
160 echo_i "checking that named logs control characters in octal notation ($n)"
163 testpid=$(run_named ns2 named$n.run -c named5.conf -D "${INSTANCE_NAME}")
165 retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
166 grep 'running as.*\\177\\033' ns2/named$n.run >/dev/null || ret=1
167 kill_named ns2/named.pid || ret=1
173 echo_i "checking that named escapes special characters in the logs ($n)"
176 testpid=$(run_named ns2 named$n.run -c named5.conf -D "${INSTANCE_NAME}")
178 retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
179 grep 'running as.*\\$\\;' ns2/named$n.run >/dev/null || ret=1
180 kill_named ns2/named.pid || ret=1
186 echo_i "checking that named logs an ellipsis when the command line is larger than 8k bytes ($n)"
190 testpid=$(run_named ns2 named$n.run $LONG_CMD_LINE -c "named5.conf")
192 retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
193 grep "running as.*\.\.\.$" ns2/named$n.run >/dev/null || ret=1
194 kill_named ns2/named.pid || ret=1
200 echo_i "checking that named log missing IPv4 primaries in -4 mode ($n)"
203 testpid=$(run_named ns2 named$n.run -c named6.conf -D "${INSTANCE_NAME}" -4)
205 retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
206 grep "IPv6 disabled and no IPv4 primaries" ns2/named$n.run >/dev/null || ret=1
207 kill_named ns2/named.pid || ret=1
213 echo_i "checking that named log missing IPv6 primaries in -6 mode ($n)"
216 testpid=$(run_named ns2 named$n.run -c named6.conf -D "${INSTANCE_NAME}" -6)
218 retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
219 grep "IPv4 disabled and no IPv6 primaries" ns2/named$n.run >/dev/null || ret=1
220 kill_named ns2/named.pid || ret=1
226 echo_i "verifying that named switches UID ($n)"
237 testpid=$(run_named "${TEMP_NAMED_DIR}" "${TEMP_NAMED_DIR}/named$n.run" -u nobody -c named7.conf)
239 retry_quiet 60 check_named_log "running$" "${TEMP_NAMED_DIR}/named$n.run" || ret=1
241 grep "loading configuration: permission denied" "${TEMP_NAMED_DIR}/named$n.run" >/dev/null && ret=1