[Pkg-utopia-maintainers] Bug#929010: Bug#929010: Bug#929010: avahi-daemon: /etc/network/if-post-down.d/avahi-daemon is slow on eth0

Michael Biebl biebl at debian.org
Thu May 16 17:36:09 BST 2019


Am 16.05.19 um 18:17 schrieb Vincent Lefevre:
> On 2019-05-16 17:52:03 +0200, Michael Biebl wrote:
>> I would suggest the following: If there is a local nameserver but no
>> network connectivity, query the local nameserver only.
> 
> OK, I can do that. Indeed, the default behavior of "host" is to try
> every server in /etc/resolv.conf until it succeeds. I suppose that
> the solution would be to use this option:
> 
>   -s
>       Do not send the query to the next nameserver if any server responds
>       with a SERVFAIL response, which is the reverse of normal stub
>       resolver behavior.

If the remote server would be ordered first in resolv.conf, I assume
this would still block? I assume you are making the assumption here that
the local server will always be listed first? Is that a safe assumption?

> I have another question: in
> 
>   if ! $(egrep -q "nameserver 127.0.0.1|::1" /etc/resolv.conf); then 
> 
> why testing 127.0.0.1 only, and not all local nameservers?
> For instance, 127.0.1.1 is used by NetworkManager:
> 
> https://askubuntu.com/questions/627899/nameserver-127-0-1-1-in-resolv-conf-wont-go-away
> 
> Also, the regexp should be something like "^ *nameserver +(127.0.0.1|::1)"
> or "^ *nameserver +(127\.|::1)", i.e.
>   * one should make sure that it is a nameserver line (in particular,
>     not a comment);
>   * several space characters should match;
>   * one should make sure that ::1 is preceded by "nameserver"
>     (the parentheses are missing).

Good question. I don't know why the script only checks for 127.0.0.1 and
not 127.0.1.1

Sjoerd, looking through the history of the package, it seems you are
most likely to be able to answer that.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20190516/f122fc46/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list