[PC-BSD Testing] ZeroConf (mdns) not set in nsswitch.conf
bharatak at kominik.net
Thu Mar 31 08:18:34 PDT 2011
On Thu, 31 Mar 2011 11:14:21 -0400, Kris Moore <kris at pcbsd.org> wrote:
> 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
>> 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
>> be used to generate the conf files. Is it called every boot? I do not
>> 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.
Hi, you can try to ping your hostname .local. If you have a mac, or some
linux distro's on the network they will also register their names.
host.local was just an example. You can try this to see if there are any
zeroconf hosts on the lan:
More information about the Testing