Nss-mdns: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Created page with "{{File|/etc/nsswitch.conf| Change host: line from <pre> hosts: files dns </pre> to <pre> hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 </pre> }}"
 
Tgurr (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Install the nss-mdns package and edit /etc/nsswitch.conf.
{{File|/etc/nsswitch.conf|
{{File|/etc/nsswitch.conf|
Change host: line from
Change host: line from
Line 9: Line 11:
</pre>
</pre>
}}
}}
If you see errors like:
<pre>
Jan 07 00:43:59 cube avahi-daemon[217]: IP_ADD_MEMBERSHIP failed: No buffer space available
</pre>
you may have to rise igmp_max_memberships like for example:
{{Root|echo 20 > /proc/sys/net/ipv4/igmp_max_memberships}}
The default value is usually 20. If you want to set this permanently you've to add
{{File|/etc/sysctl.conf|
<pre>
net.ipv4.igmp_max_memberships = 20
</pre>
}}
and run:
{{Root|sysctl -p}} or reboot your system.

Latest revision as of 04:24, 7 January 2017

Install the nss-mdns package and edit /etc/nsswitch.conf.

File: /etc/nsswitch.conf

Change host: line from

hosts:          files dns

to

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

If you see errors like:

Jan 07 00:43:59 cube avahi-daemon[217]: IP_ADD_MEMBERSHIP failed: No buffer space available

you may have to rise igmp_max_memberships like for example:

# echo 20 > /proc/sys/net/ipv4/igmp_max_memberships

The default value is usually 20. If you want to set this permanently you've to add

File: /etc/sysctl.conf
net.ipv4.igmp_max_memberships = 20

and run:

# sysctl -p

or reboot your system.