Ubuntu – Avahi-daemon repeatedly registers/withdraws address record causing network failures

avahiethernetnetworking

I am using Ubuntu 15.10 using an Ethernet connection to my cable model router. I have not customized the network set up in any way after installing Ubuntu. I've noticed that after about 12 to 24 hours after booting up, Ubuntu starts to drop internet connections. Usually I notice this after webpages fail to load images or CSS files. When this happens I notice that the /var/syslog is filled with entries like this:

Jan  8 05:26:40 46lbs avahi-daemon[730]: Registering new address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.*.
Jan  8 05:26:40 46lbs avahi-daemon[730]: Withdrawing address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.
Jan  8 05:26:43 46lbs avahi-daemon[730]: Registering new address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.*.
Jan  8 05:26:43 46lbs avahi-daemon[730]: Withdrawing address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.
Jan  8 05:26:46 46lbs avahi-daemon[730]: Registering new address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.*.
Jan  8 05:26:46 46lbs avahi-daemon[730]: Withdrawing address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.
Jan  8 05:26:49 46lbs avahi-daemon[730]: Registering new address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.*.
Jan  8 05:26:49 46lbs avahi-daemon[730]: Withdrawing address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.
Jan  8 05:26:52 46lbs avahi-daemon[730]: Registering new address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.*.
Jan  8 05:26:52 46lbs avahi-daemon[730]: Withdrawing address record for 2605:e000:850e:8800:d9cb:5166:bac1:61d2 on eth0.

Usually I can recover normal internet use by disconnecting the wired connection using the networking icon in the Ubuntu toolbar and then reconnecting. However, this is troublesome. I would like to keep the avahi-daemon for the purposes of discovery. Does anyone know how to stop this behavior? For the record, here is the output of my ifconfig

eth0      Link encap:Ethernet  HWaddr 08:62:66:7c:ea:35  
      inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
      inet6 addr: 2605:e000:850e:8800:8729:2a19:e7c8:5738/128 Scope:Global
      inet6 addr: fe80::a62:66ff:fe7c:ea35/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
      RX packets:4638380 errors:0 dropped:9 overruns:0 frame:0
      TX packets:2164811 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000 
      RX bytes:5378789738 (5.3 GB)  TX bytes:231746518 (231.7 MB)
      Interrupt:20 Memory:fb200000-fb220000 

lo        Link encap:Local Loopback  
      inet addr:127.0.0.1  Mask:255.0.0.0
      inet6 addr: ::1/128 Scope:Host
      UP LOOPBACK RUNNING  MTU:65536  Metric:1
      RX packets:40049332 errors:0 dropped:0 overruns:0 frame:0
      TX packets:40049332 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:0 
      RX bytes:2898153546 (2.8 GB)  TX bytes:2898153546 (2.8 GB)

Best Answer

I had the same problem and found your question when searching for the answer. I also found this question on serverfault:

If your DNS server that this server uses has a .local domain then avahi will fail to work. See http://avahi.org/wiki/AvahiAndUnicastDotLocal for more info on this.

When I removed my .local domain from my DNS server the problem went away. Hopefully you have the same success.

Related Question