]> git.meshlink.io Git - catta/blob - man/avahi-daemon.conf.5.xml.in
core: don't leak hinfo/workstation even if the configuration file doesn't exist
[catta] / man / avahi-daemon.conf.5.xml.in
1 <?xml version="1.0"?><!--*-nxml-*-->
2 <!DOCTYPE manpage SYSTEM "xmltoman.dtd">
3 <?xml-stylesheet type="text/xsl" href="xmltoman.xsl" ?>
4
5 <!--
6   This file is part of avahi.
7
8   avahi is free software; you can redistribute it and/or modify it
9   under the terms of the GNU Lesser General Public License as
10   published by the Free Software Foundation; either version 2.1 of the
11   License, or (at your option) any later version.
12
13   avahi is distributed in the hope that it will be useful, but WITHOUT
14   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
16   Public License for more details.
17
18   You should have received a copy of the GNU Lesser General Public
19   License along with avahi; if not, write to the Free Software
20   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21   USA.
22 -->
23
24 <manpage name="avahi-daemon.conf" section="5" desc="avahi-daemon configuration file">
25
26   <synopsis>
27     <cmd>@pkgsysconfdir@/avahi-daemon.conf</cmd>
28   </synopsis>
29
30   <description>
31     <p><file>avahi-daemon.conf</file> is the configuration file for avahi-daemon.</p>
32   </description>
33
34   <section name="Section [Server]">
35
36     <option>
37       <p><opt>host-name=</opt> Set the host name avahi-daemon tries
38       to register on the LAN. If omited defaults to the system host
39       name as set with the sethostname() system call.</p>
40     </option>
41
42     <option>
43       <p><opt>domain-name=</opt> Set the default domain name avahi-daemon
44       tries to register its host name and services on the LAN in. If
45       omitted defaults to ".local".</p>
46     </option>
47
48     <option>
49       <p><opt>browse-domains=</opt> Set a comma separated list of
50       browsing domains (in addition to the default one and those
51       announced inside the default browsing domain). Please note
52       that the user may specify additional browsing domains on the
53       client side, either by setting $AVAHI_BROWSE_DOMAINS to a list
54       of colon separated domains or by adding them to the XDG config
55       file <file>~/.config/avahi/browse-domains</file> (separated by
56       newlines).</p>
57
58     </option>
59
60     <option>
61       <p><opt>use-ipv4=</opt> Takes a boolean value ("yes" or
62       "no"). If set to "no" avahi-daemon will not use IPv4
63       sockets. Default is "yes".</p>
64     </option>
65
66     <option>
67       <p><opt>use-ipv6=</opt> Takes a boolean value ("yes" or
68       "no"). If set to "no" avahi-daemon will not use IPv6
69       sockets. Default is "yes".</p>
70     </option>
71
72     <option>
73       <p><opt>allow-interfaces=</opt> Set a comma separated list of
74       allowed network interfaces that should be used by the
75       avahi-daemon. Traffic on other interfaces will be ignored. If
76       set to an empty list all local interfaces except loopback and
77       point-to-point will be used.</p>
78     </option>
79
80     <option>
81       <p><opt>deny-interfaces=</opt> Set a comma separated list of
82       network interfaces that should be ignored by avahi-daemon.
83       Other not specified interfaces will be used, unless
84       <opt>allow-interfaces=</opt> is set. This option takes
85       precedence over <opt>allow-interfaces=</opt>.</p>
86     </option>
87
88     <option>
89       <p><opt>check-response-ttl=</opt> Takes a boolean value ("yes"
90       or "no"). If set to "yes", an additional security check is
91       activated: incoming IP packets will be ignored unless the IP
92       TTL is 255. Earlier mDNS specifications required this
93       check. Since this feature may be incompatible with newer
94       implementations of mDNS it defaults to "no". On the other hand
95       it provides extra security.</p>
96     </option>
97
98     <option>
99       <p><opt>use-iff-running=</opt> Takes a boolean value ("yes" or
100       "no"). If set to "yes" avahi-daemon monitors the IFF_RUNNING
101       flag bit which is used by some (modern) network drivers to
102       tell user space if a network cable is plugged in (in case of
103       copper ethernet), or the network card is associated with some
104       kind of network (in case of WLAN). If IFF_RUNNING is set
105       avahi-daemon will automatically announce its services on that
106       network. Unfortunately far too many network drivers do not
107       support this flag or support it in a broken way. Therefore
108       this option defaults to "no".</p>
109     </option>
110
111     <option>
112       <p><opt>enable-dbus=</opt> Takes either "yes", "no" or
113       "warn". If set to "yes" avahi-daemon connects to D-Bus,
114       offering an object oriented client API. It is only available
115       if Avahi has been compiled with <opt>--enable-dbus</opt> in
116       which case it defaults to "yes". "warn" behaves like "yes",
117       but the daemon starts up even when it fails to connect to a
118       D-Bus daemon. In addition, if the connection to the D-Bus
119       daemon is terminated we try to reconnect. (Unless we are in a
120       chroot() environment where this definitely will fail.) </p>
121     </option>
122
123     <option>
124       <p><opt>disallow-other-stacks=</opt> Takes a boolean value
125       ("yes" or "no"). If set to "yes" no other process is allowed
126       to bind to UDP port 5353. This effectively impedes other mDNS
127       stacks from running on the host. Use this as a security
128       measure to make sure that only Avahi is responsible for mDNS
129       traffic. Please note that we do not recommend running multiple
130       mDNS stacks on the same host simultaneously. This hampers
131       reliability and is a waste of resources. However, to not annoy
132       people this option defaults to "no".</p>
133     </option>
134
135     <option>
136       <p><opt>allow-point-to-point=</opt> Takes a boolean value
137       ("yes" or "no"). If set to "yes" avahi-daemon will make use of
138       interfaces with the POINTOPOINT flag set. This option defaults
139       to "no" as it might make mDNS unreliable due to usually large
140       latencies with such links and opens a potential security hole
141       by allowing mDNS access from Internet connections. Use with
142       care and YMMV!</p>
143     </option>
144
145     <option>
146       <p><opt>cache-entries-max=</opt> Takes an unsigned integer
147       specifying how many resource records are cached per
148       interface. Bigger values allow mDNS work correctly in large LANs
149       but also increase memory consumption.</p>
150     </option>
151
152     <option>
153       <p><opt>clients-max=</opt> Takes an unsigned integer. The
154       maximum number of concurrent D-Bus clients allowed. If the
155       maximum number is reached further clients will be refused until
156       at least one existing client disconnects.</p>
157     </option>
158
159     <option>
160       <p><opt>objects-per-client-max=</opt> Takes an unsigned
161       integer. The maximum number of objects (entry groups, browsers,
162       resolvers) that may be registered per D-Bus client at a time. If the
163       maximum number is reached further object creation will be
164       refused until at least one object is freed.</p>
165     </option>
166
167     <option>
168       <p><opt>entries-per-entry-group-max=</opt> Takes an unsigned
169       integer. The maximum number of entries (resource records) per
170       entry group registered by a D-Bus client at a time. If the
171       maximum number is reached further resource records may not be
172       added to an entry group.</p>
173     </option>
174
175     <option>
176       <p><opt>ratelimit-interval-usec=</opt> Takes an unsigned
177       integer. Sets the per-interface packet rate-limiting interval
178       parameter. Together with <opt>ratelimit-burst=</opt> this may be
179       used to control the maximum number of packets Avahi will
180       generated in a specific period of time on an interface.</p>
181     </option>
182
183     <option>
184       <p><opt>ratelimit-burst=</opt> Takes an unsigned
185       integer. Sets the per-interface packet rate-limiting burst
186       parameter. Together with <opt>ratelimit-interval-usec=</opt> this may be
187       used to control the maximum number of packets Avahi will
188       generated in a specific period of time on an interface.</p>
189     </option>
190   </section>
191
192   <section name="Section [wide-area]">
193     <option>
194       <p><opt>enable-wide-area=</opt> Takes a boolean value
195       ("yes" or "no"). Enable wide-area DNS-SD, aka
196       DNS-SD over unicast DNS. If this is enabled only domains
197       ending in .local will be resolved on mDNS, all other domains
198       are resolved via unicast DNS. If you want to maintain multiple
199       different multicast DNS domains even with this option enabled
200       we encourage you to use subdomains of .local, such as
201       "kitchen.local". This option defaults to "yes".</p>
202     </option>
203
204   </section>
205
206   <section name="Section [publish]">
207
208     <option><p><opt>disable-publishing=</opt> Takes a boolean value
209     ("yes" or "no"). If set to "yes", no record will be published by
210     Avahi, not even address records for the local host. Avahi will
211     be started in a querying-only mode. Use this is a security
212     measure. This option defaults to "no"</p></option>
213
214     <option><p><opt>disable-user-service-publishing=</opt> Takes a boolean value
215     ("yes" or "no"). If set to "yes", Avahi will still publish
216     address records and suchlike but will not allow user
217     applications to publish services. Use this is a security
218     measure. This option defaults to "no"</p></option>
219
220     <option>
221       <p><opt>add-service-cookie=</opt> Takes a boolean value ("yes"
222       or "no"). If set to "yes" an implicit TXT entry will be added
223       to all locally registered services, containing a cookie value
224       which is chosen randomly on daemon startup. This can be used
225       to detect if two services on two different
226       interfaces/protocols are actually identical. Defaults to
227       "no".</p>
228     </option>
229
230     <option>
231       <p><opt>publish-addresses=</opt> Takes a boolean value ("yes"
232       or "no"). If set to "yes" avahi-daemon will register mDNS
233       address records for all local IP addresses. Unless you want to
234       use avahi-daemon exclusively for browsing it's recommended to
235       enable this. If you plan to register local services you need
236       to enable this option. Defaults to "yes".</p>
237     </option>
238
239     <option>
240       <p><opt>publish-hinfo=</opt> Takes a boolean value ("yes" or
241       "no"). If set to "yes" avahi-daemon will register an mDNS
242       HINFO record on all interfaces which contains information
243       about the local operating system and CPU, which might be
244       useful for administrative purposes. This is recommended by the
245       mDNS specification but not required. For the sake of privacy
246       you might choose to disable this feature. Defaults to
247       "no".</p>
248     </option>
249
250     <option>
251       <p><opt>publish-workstation=</opt> Takes a boolean value
252       ("yes" or "no"). If set to "yes" avahi-daemon will register a
253       service of type "_workstation._tcp" on the local LAN. This
254       might be useful for administrative purposes (i.e. browse for
255       all PCs on the LAN), but is not required or recommended by any
256       specification. Newer MacOS X releases register a service of
257       this type. Defaults to "no".</p>
258     </option>
259
260     <option>
261       <p><opt>publish-domain=</opt> Takes a boolean value ("yes" or
262       "no"). If set to "yes" avahi-daemon will announce the locally
263       used domain name (see above) for browsing by other
264       hosts. Defaults to "yes".</p>
265     </option>
266
267     <option>
268       <p><opt>publish-dns-servers=</opt> Takes a comma separated
269       list of IP addresses for unicast DNS servers. You can use this
270       to announce unicast DNS servers via mDNS. When used in
271       conjunction with avahi-dnsconfd on the client
272       side this allows DHCP-like configuration of unicast DNS
273       servers.</p>
274     </option>
275
276     <option>
277       <p><opt>publish-resolv-conf-dns-servers=</opt> Takes a boolean
278       value ("yes" or "no"). If set to "yes" avahi-daemon will
279       publish the unicast DNS servers specified in
280       <file>/etc/resolv.conf</file> in addition to those specified
281       with <opt>publish-dns-servers</opt>. Send avahi-daemon a
282       SIGHUP to have it reload this file. Defaults to "no".</p>
283     </option>
284
285     <option>
286       <p><opt>publish-aaaa-on-ipv4=</opt> Takes a boolean value
287       ("yes" or "no"). If set to "yes" avahi-daemon will publish an
288       IPv6 AAAA record via IPv4, i.e. the local IPv6 addresses can be
289       resolved using an IPv4 transport. Only useful when IPv4 is
290       enabled with <opt>use-ipv4=true</opt>. Defaults to "yes".</p>
291     </option>
292
293     <option>
294       <p><opt>publish-a-on-ipv6=</opt> Takes a boolean value
295       ("yes" or "no"). If set to "yes" avahi-daemon will publish an
296       IPv4 A record via IPv6, i.e. the local IPv4 addresses can be
297       resolved using an IPv6 transport. Only useful when IPv6 is
298       enabled with <opt>use-ipv6=true</opt>. Defaults to "no".</p>
299     </option>
300
301   </section>
302
303   <section name="Section [reflector]">
304     <option>
305       <p><opt>enable-reflector=</opt> Takes a boolean value ("yes"
306       or "no"). If set to "yes" avahi-daemon will reflect incoming
307       mDNS requests to all local network interfaces, effectively
308       allowing clients to browse mDNS/DNS-SD services on all
309       networks connected to the gateway. The gateway is somewhat
310       intelligent and should work with all kinds of mDNS traffic,
311       though some functionality is lost (specifically the unicast
312       reply bit, which is used rarely anyway). Make sure to not run
313       multiple reflectors between the same networks, this might
314       cause them to play Ping Pong with mDNS packets. Defaults to
315       "no".</p>
316     </option>
317
318     <option>
319       <p><opt>reflect-ipv=</opt> Takes a boolean value ("yes" or
320       "no"). If set to "yes" and <opt>enable-reflector</opt> is
321       enabled, avahi-daemon will forward mDNS traffic between IPv4
322       and IPv6, which is usually not recommended. Defaults to "no".</p>
323     </option>
324   </section>
325
326   <section name="Section [rlimits]">
327     <p>This section is used to define system resource limits for the
328     daemon. See <manref section="2" name="setrlimit"/> for more
329     information. If any of the options is not specified in the configuration
330     file, avahi-daemon does not change it from the system
331     defaults.</p>
332
333     <option>
334       <p><opt>rlimit-as=</opt> Value in bytes for RLIMIT_AS (maximum size of the process's virtual memory). Sensible values are heavily system dependent.</p>
335     </option>
336
337     <option>
338       <p><opt>rlimit-core=</opt> Value in bytes for RLIMIT_CORE (maximum core file size). Unless you want to debug avahi-daemon, it is safe to set this to 0.</p>
339     </option>
340
341     <option>
342       <p><opt>rlimit-data=</opt> Value in bytes for RLIMIT_DATA (maximum size of the process's data segment). Sensible values are heavily system dependent.</p>
343     </option>
344
345     <option>
346       <p><opt>rlimit-fsize=</opt> Value for RLIMIT_FSIZE (maximum size of files the process may create). Since avahi-daemon shouldn't write any files to disk, it is safe to set this to 0.</p>
347     </option>
348
349     <option>
350       <p><opt>rlimit-nofile=</opt> Value for RLIMIT_NOFILE (open file descriptors). avahi-daemon shouldn't need more than 15 to 20 open file descriptors concurrently.</p>
351     </option>
352
353     <option>
354       <p><opt>rlimit-stack=</opt> Value in bytes for RLIMIT_STACK (maximum size of the process stack). Sensible values are heavily system dependent.</p>
355     </option>
356
357     <option>
358       <p><opt>rlimit-nproc=</opt> Value for RLIMIT_NPROC (number of process of user). avahi-daemon forks of a helper process on systems where <manref name="chroot" section="2"/> is available. Therefore this value should not be set below 2.</p>
359     </option>
360
361   </section>
362
363   <section name="Authors">
364     <p>The Avahi Developers &lt;@PACKAGE_BUGREPORT@&gt;; Avahi is
365     available from <url href="@PACKAGE_URL@"/></p>
366   </section>
367
368   <section name="See also">
369     <p>
370       <manref name="avahi-daemon" section="8"/>, <manref name="avahi-dnsconfd" section="8"/>
371     </p>
372   </section>
373
374   <section name="Comments">
375     <p>This man page was written using <manref name="xml2man" section="1"
376     href="http://masqmail.cx/xml2man/"/> by Oliver Kurth.</p>
377   </section>
378
379 </manpage>