#!/bin/sh

# Exit if package was removed but not purged.
test -x /usr/sbin/dnrd || exit 0

case "$PPP_IFACE" in
	ippp0)	#dnrd -s 123.45.67.89
		;;
	*)
		DNS=
		if [ -n "$MS_DNS1" ]; then
			DNS="-s $MS_DNS1"
		fi

		if [ -n "$MS_DNS2" ]; then
			DNS="$DNS -s $MS_DNS2"
		fi

	# Uncomment the following lines if you want to use automatically
	# assigned DNS servers.
	# Note: You have to run the ppp/ippp daemon with the option
	# "ms-get-dns" in order to use this feature.

	#	if [ -n "$DNS" ]; then
	#		dnrd $DNS
	#	fi
		;;
esac
