3 opts="${opts} rebuild reload status update notify"
11 if [ ! -e "/etc/nsd/nsdc.conf" -a ! -e "/etc/nsd/nsd.zones" ]; then
12 eerror "You need to create apropriate configs"
13 eerror "in /etc/nsd/ . Examples can be found in /etc/nsd/*.sample"
21 /usr/sbin/nsdc start &>/dev/null
27 /usr/sbin/nsdc stop &>/dev/null
32 ebegin "Reloading nsd"
33 /usr/sbin/nsdc reload &>/dev/null
38 ebegin "Rebuild nsd database"
39 /usr/sbin/nsdc rebuild &>/dev/null
44 ebegin "Check if nsd is running"
45 /usr/sbin/nsdc running &>/dev/null
50 ebegin "Updating nsd zones"
51 /usr/sbin/nsdc update &>/dev/null
56 ebegin "Notify slave servers for zones"
57 /usr/sbin/nsdc notify &>/dev/null