Project

General

Profile

Actions

Feature #5052

closed

Avahi Proxy Package: Add option to disable/control cache size.

Added by Pete Whitfill about 9 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Avahi
Target version:
-
Start date:
08/30/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

Request: Set "cache-entries-max=0" in the avahi-daemon.conf file or be able to control it some way.

I have successfully set up a LAN-pfsense-openVPN-pfsense-LAN routed tunnel network with the avahi proxy (reflector) package installed on both machines to advertise mDNS across the two networks.

My biggest problem in setup was that once the default config was enabled on one of the networks, many OSX hosts on that lan started incrementing a suffix on their hostnames:

"machine" becomes "machine (2)" which then becomes "machine (3)"

Some searching online found one reference to setting "cache-entries-max=0" in the avahi-daemon.conf file and upon testing, it worked. Now hostnames are remaining stable. Only downside is that any GUI interaction with the avahi config page would overwrite the config.

I then edited /usr/local/pkg/avahi.inc to update the template that is used to populate the running avahi-daemon.conf and the configuration change persists GUI changes.

I would recommend adding this as on option to the GUI or to consider setting this cache as 0 as default. It causes all kinds of havoc on a network of Mavericks and Yosemite machines. I could see where in some networks someone might want to use the caching to reduce bandwidth usage but I couldn't get it to work properly in our network without disabling it.

Actions

Also available in: Atom PDF