--- pdns-recursor.init	2005-04-03 17:54:06.000000000 -0700
+++ /etc/init.d/pdns-recursor	2005-04-03 17:05:06.000000000 -0700
@@ -27,6 +27,10 @@
     if [ "$START" = "yes" ]; then
       $NAME --daemon 2>&1 /dev/null
       echo "done."
+
+      if test -x /sbin/resolvconf; then
+        echo "nameserver 127.0.0.1" | /sbin/resolvconf -a lo
+      fi
     else
       echo "disabled"
     fi
@@ -37,6 +41,10 @@
       kill -HUP `cat $PIDFILE`
     fi
     echo "done."
+
+    if test -x /sbin/resolvconf; then
+      /sbin/resolvconf -d lo
+    fi
   ;;
   restart|force-reload)
     echo -n "Restarting $DESC: "
