You are not logged in.
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
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
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
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
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
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
Please, tell how you solved this, and add [SOLVED], by editing your first post. Thanks!
Offline
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
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
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
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
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
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
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
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
What environment are you running?
Offline
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
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