Bug#409513: [Pkg-utopia-maintainers] Bug#409513: ifup and ifdown slow becouse of avahi-deamon script

Reinhard Tartler siretart at tauware.de
Wed Feb 21 15:08:01 UTC 2007


sjoerd at spring.luon.net (Sjoerd Simons) writes:
> A second one could be done if resolvconf isn't available is to only
> recheck when avahi is actually disabled, although this assumes that
> the changes caused by bringing an interface down will never cause an
> nameserver to be added which has a .local.

Why do you need this check anyway? If there is an authoritative
nameserver for .local, what bad happens besides lookups for .local
address break?

>> On Ubuntu the network interfaces are bought up in the background so it
>> doesn't cause any delays I beleive Debian still does this in the
>> foreground however, perhaps we can affect the timeout value of 'host'?
>
> Well, manually running ifup on ubuntu also does it in the foreground. But yes,
> ifup -a on startup on debian is done in the foreground. Some things which could
> be done to optimize this are to _not_ run host when: 
>  * /etc/resolv.conf doesn't list any nameservers
>  * only lo is up and 127.0.0.1 isn't in /etc/resolv.conf
>
> This helps as host will query localhost (and waits untill the queries timeout)
> when there are no nameservers specified. 

Errr, I think you assume here that there is only one interface, and that
one can always reach a nameserver. This is wrong for

a) laptops (which might be offline)
b) multi homed systems (laptops with ethernet/wifi, servers with
   multiple network interfaces, etc)

Since avahi/libnss-mdns gets more and more reverse depends, I think the
package should be more and more careful about assumptions.

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20070221/3dc00ba8/attachment-0001.pgp


More information about the Pkg-utopia-maintainers mailing list