--- pdns-server.init	2005-04-03 17:54:06.000000000 -0700
+++ /etc/init.d/pdns	2005-04-02 23:22:24.000000000 -0800
@@ -45,6 +45,10 @@
 		if test "$NOTRUNNING" = "0"; then
 			doPC quit
 			echo $ret
+
+			if test -x /sbin/resolvconf; then
+				/sbin/resolvconf -d lo
+			fi
 		else
 			echo "not running"
 		fi
@@ -62,6 +66,10 @@
 			$pdns_server --daemon --guardian=yes
 			if test "$?" = "0"; then
 				echo "started"
+
+				if test -x /sbin/resolvconf; then
+					echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo
+				fi
 			fi
 		fi
 	;;
