[PC-BSD Testing] ZeroConf (mdns) not set in nsswitch.conf

Bharata Kom 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:
>>>> Greetings,
>>>>
>>>> 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--
>>>> 7c7
>>>> <  hosts:        files dns
>>>> ---
>>>>> hosts:        files mdns dns
>>>>
>>>> -=B
>>>> _______________________________________________
>>>> Testing mailing list
>>>> Testing at lists.pcbsd.org
>>>> http://lists.pcbsd.org/mailman/listinfo/testing
>>> 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.
>>
>> -=B
>>
>>
>> _______________________________________________
>> Testing mailing list
>> Testing at lists.pcbsd.org
>> http://lists.pcbsd.org/mailman/listinfo/testing
> 
> 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:
avahi-browse _workstation._tcp

-=B



More information about the Testing mailing list