Too long and unhelpful notification for ".local" domains

Bug #395155 reported by Vincenzo Ciancia
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: avahi-daemon

When I connect to my home router, I get a notification about avahi being unable to use a ".local" domain. This bug is about fixing the message so that it is clearer and shorter. I was instructed to report such a bug on the ayatana mailing list, so perhaps a bit of discussion with them may be useful if the problem is unclear.

The current message, at least, its Italian translation that I see every day, is definitely too long, I had to see it a tenth of times to be able to read the whole of it in the short delay of a notification. Moreover, even if I think I can be considered an expert in using linux, I did not understand at all the meaning of the message, and I had to google for it just to get what the point is. The topic is a bit technical for the average user. Even if knowing that avahi is "a dns service for the local network" I still have no clue of what it is actually used for, so I do not know what are the consequences of the notification (e.g. will my printer work, and this thing is connected with apple perhaps, so will my ipod work - if I had one :)).

A short message like "The avahi service is disabled, look here for more info" would be good, but links can't be put in the notification. So I personally can't propose a good solution. Perhaps the message should not be shown at all, but rather it should be "embedded" in applications when they try to use avahi and fail (e.g. "avahi is disabled because your network has a .local domain, click here to know more", which is possible inside of an application.

In any case, the current message is too long to be read; this is the easily understandable part of this bug.

tags: added: ayatana usability
Revision history for this message
daqron (daqron) wrote :

Furthermore, what the hell does this error mean? It doesn't seem to affect network connectivity, but I sometimes see this message when connecting to free wifi hotspots. This bug seems to be the only result when I Google the error message.

Revision history for this message
Andreas Ringlstetter (ext3h) wrote :

This message is thrown in /usr/lib/avahi/avahi-daemon-check-dns.sh and causes avahi-daemon to be shut down. Therby zeroconf is no longer avaible, not even when the "faulty" network was left.

Furthermore in most networks this message and the shutdown are the result of a bug in this script, the network itself is just fine!

Line 58 is faulty:
    if echo "$OUT" | egrep -vq 'has no|not found'; then

The "host"-command may throw comments and debug-messages with a trailing ";; " but those are not recognized by this script and therby result in the unnecessary shutdown of avahi-daemon.

Change line 58 into the following to make the script work as supposed (and stop the unwanted shutdown):
    if echo "$OUT" | egrep -vq 'has no|not found|^;; '; then

avahi-daemon will no longer die without a reason after this and the message will only occur on networks which are truly configured wrong.

tags: added: lucid
Changed in avahi (Ubuntu):
status: New → Confirmed
Revision history for this message
dupontd (dupontdrf-deactivatedaccount-deactivatedaccount) wrote :

The full message (translate myself with Google, from French to English) is :
Research network services disabled
Your current network has a domain. Local, which is neither recommended nor compatible with the search function Avahi network service. this function has been disabled.

Revision history for this message
dupontd (dupontdrf-deactivatedaccount-deactivatedaccount) wrote :

When I put my system in French, the message appears.

But I've never seen when the system is in English !

Revision history for this message
arm-c (arickmcniel) wrote :

If the solution to this error is truly in what Exterminans (andreas-ringlstetter) wrote on 2010-06-30, then why can't we get it fixed in the script? That was 2010.... it is 2014 now?

Revision history for this message
Jesse Glick (jesse-glick) wrote :

I am a programmer and I have only the foggiest notion of what Avahi is or what it is there for, yet I continually receive this irritating warning popup about something broken that I was not trying to use to begin with. #327362 is the bug I found years ago. I just want this notification to go away and stay away unless and until I am using some application which is actually impaired.

Possibly also related: #80900, #1441008, #1082858, etc.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.