On Sun, 24.12.06 22:09, Loïc Minier ([EMAIL PROTECTED]) wrote: Hi!
> I just uploaded a nss-mdns NMU which I think addresses the RC issues of > this particular package. One of the major changes is that it now > requires avahi-daemon to resolve .local entries. IIUC, the proper way > to support networks where ".local" is a real domain name is to disable > avahi-daemon when a nameserver claims to have a SOA for the .local > domain. This check should be made everytime the DNS settings change > and on boot, so I think the simplest way is to: > 1) check whether there's a SOA for .local before starting avahi-daemon, > and do not really start it when a start was requested but a SOA was > found > 2) restart avahi-daemon in a dhclient hook to make sure the test is > run with the new DNS settings > 3) restart avahi-daemon in a resolvconf hoook to make sure the test is > run with the new DNS settings The dhclient hook should not be run if resolvconf is installed - because otherwise the hook script might be run twice! The Ubuntu script just silently stops Avahi. This is suboptimal, the user should get some feedback about this. Notifications with the DBUS notification-daemon would be a good thing. Unfortunately, that daemon is solely a session daemon, i.e. it's service cannot be used from a system script. :-( An alternative would be syslog: </snip> if test -x /usr/bin/logger ; then logger -p daemon.warning -t avahi <<EOF Avahi detected that your currently configured local DNS server serves a domain .local. This is inherently incompatible with Avahi and thus Avahi disabled itself. If you want to use Avahi in this network, please contact your administrator and convince him to use a different DNS domain, since .local should be used exclusively for Zeroconf technology. EOF fi </snip> Or something like that. Perhaps we should add a page to our avahi.org wiki and explain the situation there and link it from that syslog message. > I wish you all a Merry Christmas! And if you need to catch me, you > can I wish you a happy new year! Lennart -- Lennart Poettering; lennart [at] poettering [dot] net ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/