Показаны сообщения с ярлыком dns. Показать все сообщения
Показаны сообщения с ярлыком dns. Показать все сообщения
среда, 15 апреля 2009 г.
dns loss check
Оценить количество потерянных dns запросов можно, например, по счетчику "dropped due to full socket buffers" в netstat -s -p udp
вторник, 25 ноября 2008 г.
archlinux unbound startscript
стартовый скрипт для unbound в archlinux
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`cat /usr/local/etc/unbound/unbound.pid 2>/dev/null`
case "$1" in
start)
stat_busy "Starting Unbound DNS"
if [ -z "$PID" ]; then
/usr/local/sbin/unbound -c /usr/local/etc/unbound/unbound.conf &
fi
if [ ! -z "$PID" -o $? -gt 0 ]; then
stat_fail
else
add_daemon unbound
stat_done
fi
;;
stop)
stat_busy "Stopping Unbound DNS "
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon unbound
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
PID=`cat /usr/local/etc/unbound/unbound.pid 2>/dev/null`
case "$1" in
start)
stat_busy "Starting Unbound DNS"
if [ -z "$PID" ]; then
/usr/local/sbin/unbound -c /usr/local/etc/unbound/unbound.conf &
fi
if [ ! -z "$PID" -o $? -gt 0 ]; then
stat_fail
else
add_daemon unbound
stat_done
fi
;;
stop)
stat_busy "Stopping Unbound DNS "
[ ! -z "$PID" ] && kill $PID &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon unbound
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Подписаться на:
Сообщения (Atom)