[PC-BSD Testing] ZeroConf (mdns) not set in nsswitch.conf
kris at pcbsd.org
Thu Mar 31 08:14:21 PDT 2011
On 03/31/2011 10:48, Bharata Kom wrote:
> On Thu, 31 Mar 2011 10:08:31 -0400, Kris Moore<kris at pcbsd.org> wrote:
>> On 03/31/2011 08:17, Bharatak Kom wrote:
>>> In the default configuration of PCBSD 9.0 the avahi_daemon is enabled
>>> by default however resolving the .local domain does not work. I think
>>> it would make sense to add an entry for mdns in /etc/nsswitch.conf.
>>> This would allow pcbcd hosts to resolve the .local domain and enable
>>> network browsing for kde and gnome.
>>> --diff for /etc/nsswitch.conf--
>>> < hosts: files dns
>>>> hosts: files mdns dns
>>> Testing mailing list
>>> Testing at lists.pcbsd.org
>> Are you sure this makes a difference? When I add it and restart
>> /etc/rc.d/nsswitch here it gives this:
>> Warning: unrecognized source [mdns]
>> Then /etc/host.conf doesn't have any mdns entry in it.
> All I did was change the /etc/nsswitch.conf file. I did not restart any
> services. with mdns in the hosts: line I can successfully "ping host.local"
> if mdns is not there it does not work, I get a bogus cable modem dns
> re-direct - but that's another story.
> I took a quick look, on PCBSD-8.2, at /etc/rc.d/nsswitch and that seems to
> be used to generate the conf files. Is it called every boot? I do not have
> access to my test box from here, I can re-verify tonight.
> Testing mailing list
> Testing at lists.pcbsd.org
I cant ping host.local here with or without this mdns line :(
But yes, that /etc/rc.d/nsswitch is run at startup, and you can run it
manually as well.
More information about the Testing