You are not logged in.

#1 2013-05-20 13:54:26

Malay
Member
Registered: 2013-05-20
Posts: 9

WARNING: No NSS support for mDNS detected, consider installing nss-mdn

WARNING: No NSS support for mDNS detected, consider installing nss-mdns!

I am using avahi for zero-conf networking. I have cross compiled it for the mips. I am able to run it very well. It is assigning IP address automatically to board. But I am getting this warning when I run the avahi-daemon. I have searched the forums for this.
Someone said it is OK to go with this warning. But I want to get rid of this warning. It is giving ".local" host name to the device as I have configured it in the avahi-daemon.conf file.

The avahi-daemon.conf file is as follows:

[server]
host-name=powerlinesocket
domain-name=local
browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
#check-response-ttl=no
#use-iff-running=no
enable-dbus=no
#disallow-other-stacks=no
#allow-point-to-point=no

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
#publish-hinfo=yes
#publish-workstation=yes
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=300
rlimit-stack=4194304
rlimit-nproc=3

Can anybody help me to solve this warning?

Offline

#2 2013-05-21 14:13:33

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Can anybody help me on this topic? Or I have put it at wrong place. Should I have to ask this question in other part of this forum?

Offline

#3 2013-05-21 14:56:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

I don't know how to use avahi.  I set it up very minimally on my router, but that is all.  Have you tried installing nss-mdns by chance?

Offline

#4 2013-05-25 11:30:53

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

I have tried to install nss-mdns but it is giving following error:
nss.c:32:17: error: nss.h: No such file or directory

Offline

#5 2013-05-25 11:50:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Looks like a compilation error.
Which package you used?
How did you install it, tools?
Are there any more logs instead of this 'oneliner'

Offline

#6 2013-05-25 13:48:58

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

I have solved this issue. The warning was coming because it was missing nss-mdns. I have compiled the nss-mdns for my board. And copied the .so file in the board. I have rerun the avahi-daemon. The warning was not there. I can help on this topic if anyone is needed help. Thank you.

Last edited by Malay (2013-05-27 05:30:05)

Offline

#7 2013-05-25 13:58:51

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Please, tell how you solved this, and add [SOLVED], by editing your first post. Thanks!

Offline

#8 2013-05-25 14:06:03

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Another issue related to avahi. It comes when I run avahi-daemon :
iface.c: avahi_server_add_address() failed: Not supported
Steps to produce :
Previously  my avahi-daemon.conf contain "domain-name=local". Now I have changed to "domain-name=alocal".
Reason :
Somehow I can not access the hostname assigned by avahi from my PC. The complete host name is powerline.local which is assigned by avahi. I have tried to make it as powerline.alocal but it has started giving me above error.
Aim:
My ultimate aim is to give it like www.powerline.socket. Should I have to change the code of avahi library? I am using "avahi-0.6.23".
avahi-daemon.conf file:
[server]
host-name=powerline
domain-name=alocal
browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no

[wide-area]
enable-wide-area=yes

[publish]
disable-publishing=no
disable-user-service-publishing=no
#add-service-cookie=no
publish-addresses=yes
publish-hinfo=yes
publish-workstation=yes
publish-domain=yes
publish-dns-servers=192.168.50.1, 192.168.50.2
publish-resolv-conf-dns-servers=yes
publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=300
rlimit-stack=4194304
rlimit-nproc=3


Please tell me if any other info is needed.

Offline

#9 2013-05-25 14:43:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

You should change your servers name too, not only avahi.conf
Show us;

hostname
hostname -f

edit: oh and

avahi-discover

Last edited by qinohe (2013-05-25 14:45:32)

Offline

#10 2013-05-27 05:37:47

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

hostname
(none)
 hostname -f
hostname: (none): Unknown host

Should I run avahi-discover on the board? I don't have that utility.

Last edited by Malay (2013-05-27 14:28:51)

Offline

#11 2013-05-27 08:32:23

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Pleas use code tags for readability, like this whitout the space; [ code]hostname -f[ /code]

This command should give you some output like this in your case;

 hostname -f
powerline.alocal

So the first thing you need to sort out is, why does you server not have a hostname set!

Offline

#12 2013-05-27 14:32:45

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

It may be possible that avahi is not assigning the hostname to device but it is managing in some other way. I will work as per your suggestion and will find out the reason for that. Thank you.

Offline

#13 2013-05-27 16:25:29

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Do you have anything written to /etc/hostname?  Or does that file exist at all?  Just so you know, systemd has brought about a pretty neat little tool called hostnamectl.  Run it without any arguments and see its neatness.  Then you can also use it to fix up your hostname as well.

Offline

#14 2013-05-27 16:44:43

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

Thanks WonderWoofy, didn't know that tool!
I'm so used to debian and all it's ways...
Sometimes I try to apt-get a package on Arch...)

Offline

#15 2013-05-28 06:47:52

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

No I don't have file called /etc/hostname in my environment. Should I have to download the tool called "hostnamectl"? Because It is not present in my system. Is it part of busy-box?

Offline

#16 2013-05-28 12:39:59

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

What environment are you running?

Offline

#17 2013-05-28 14:40:58

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

hostnamectl is part of systemd.  Are you running systemd?  If not, that would be the root of your problems, and would also explain why you don't ahve an /etc/hostname

Offline

#18 2013-05-31 13:25:19

Malay
Member
Registered: 2013-05-20
Posts: 9

Re: WARNING: No NSS support for mDNS detected, consider installing nss-mdn

I am sorry. I have replied late. I am not running systemd. I am using the stack which is provided to me by our client. I have to cross compile it for mips. The chips which are used are from Qualcomm. I am working on embedded environment. I can create whatever files is needed. The root file system which they have provided does not have these files.

I am happy to give any other needed information.

Offline

Board footer

Powered by FluxBB