Package: resolvconf
Version: 1.29
Severity: wishlist
Tags: patch

i would really like it if resolvconf would handle updating local
forwarding instances of djbdns's dnscache [0].

I wrote a simple script to do this based off of Thomas Hood's work on
the bind and libc resolver scripts.

the script looks for every instance of dnscache managed by daemontools
on the current machine, and it only alters those caches which have
FORWARDONLY set.

it should auto-detect either build-style of daemontools ("the debian
way" with /var/lib/svscan, or "the djb way" with /service), and finds
dnscache instances by checking the contents of 'run' and the structure
of 'root/' in the daemontools configuration directory.

The script just dumps the offered nameservers directly into
root/servers/@, wiping out whatever was there before.  If no
nameservers are offered, it copies /etc/dnsroots.global (a file
installed by the djbdns package) into root/servers/@.

Please let me know what else the script needs to be considered for
inclusion with resolvconf.  i'm happy to receive any feedback or
criticism.  Thanks for maintaining resolvconf!

Regards,

        --dkg

[0] http://cr.yp.to/djbdns/dnscache.html


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages resolvconf depends on:
ii  coreutils                     5.2.1-2    The GNU core utilities
ii  debconf [debconf-2.0]         1.4.51     Debian configuration management sy
ii  initscripts                   2.86.ds1-1 Standard scripts needed for bootin

resolvconf recommends no packages.

-- debconf information excluded

Attachment: dnscache
Description: application/shellscript

Reply via email to