blob: 0ce2033d9f8b36ff674ace6ed6a135310b8173cd (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
case "${reason}" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
# Set the IP of "dynamic" entry for pdnsd
SRVS=""
for X in ${new_domain_name_servers}; do
if [ -z "${SRVS}" ]; then
SRVS="${X}"
else
SRVS="${SRVS},${X}"
fi
done
pdnsd-ctl server dynamic up ${SRVS}
;;
PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
# reset to values in /etc/pdnsd.conf
pdnsd-ctl config
;;
esac
|