[systemd-devel] mdns support to networkd

Vasiliy Tolstov v.tolstov at selfip.ru
Mon Jun 23 23:15:49 PDT 2014


2014-06-23 23:27 GMT+04:00 Simon McVittie <simon.mcvittie at collabora.co.uk>:
> It sounds as though you have a misconfigured nss_mdns: you should
> reconfigure nsswitch.conf to have mdns4_minimal [NOTFOUND=return], or
> maybe mdns_minimal [NOTFOUND=return], but not mdns4 or mdns. New
> installations of Debian's libnss-mdns do this:
>
>     hosts:          files mdns4_minimal [NOTFOUND=return] dns
>

_minimal have bugs and very ugly code.
For example it send multicast only via first interface that up. But i
have first interface private with virtualbox and need multicast on
second..

> (perhaps with some extra resolvers like Lennart's "myhostname", but what
> I quoted is the minimum) and that gets rid of the 5 second delay, at the
> cost of not using mDNS for PTR lookups of addresses outside the
> link-local 169.254.0.0/16 and fe80::/16 blocks.
>
> I've wondered whether to implement an extended syntax for
> /etc/mdns.allow so you can do something like
>
>     # /etc/mdns.allow
>     .lan.
>     .lan
>     .local.
>     .local
>     ptr 169.254.0.0/16
>     ptr 192.168.0.0/24
>     ptr fe80::/16
>
> but haven't got round to it so far.




-- 
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru
jabber: vase at selfip.ru


More information about the systemd-devel mailing list