![]() |
mDNS support for Maemo 5
Hi,
I created package mdns-support and pushed it into Extras-Devel. Package can be installed via HAM (search for mDNS). This package install & configure Maemo 5 system for mDNS support. It install packages avahi-daemon libnss-mdns library and edit /etc/nsswitch.conf. After installation is reboot required. mDNS provide hostname resolving for domain .local. Every device which support mDNS have domain <hostname>.local. So when computer (with mDNS support) and Nokia N900 connect to wifi network, mDNS can be used for identifing network devices and resolving hostname to ip addresses. Usefull for SSH when DHCP server assigning random ip address. So on computer I can ping Nokia N900 device with: Code:
$ ping Nokia-N900.local Code:
$ sudo ping Pali.local http://maemo.org/packages/view/mdns-support/ http://maemo.org/packages/view/libnss-mdns/ http://maemo.org/packages/view/avahi-daemon/ |
Re: mDNS support for Maemo 5
Sometimes (or always), after boot, avahi-daemon not starting.
When I "sudo start avahi-daemon", it says about too frequent starting. But if I "sudo avahi-daemon", it starts normally. Then Ctrl-C, and "sudo start avahi-daemon" now ok. |
Re: mDNS support for Maemo 5
Try to uninstall and install again all avahi packages. In old version was some init.d bugs.
|
Re: mDNS support for Maemo 5
Quote:
|
Re: mDNS support for Maemo 5
Quote:
But after reboot again - too fast respawning. |
Re: mDNS support for Maemo 5
Try:
$ sudo start avahi-daemon and write output from syslog (after command) Also please write output: $ ls -l -a /etc/init.d | grep -i avahi $ ls -l -a /etc/event.d | grep -i avahi |
Re: mDNS support for Maemo 5
sudo start avahi-daemon - if some time passed after reboot - normal start. I think some service prevents start of avahi-daemon on startup (at least on my phone, many programs installed). Maybe it will be enough to start after hildon-desktop e.g., not after dbus.
Code:
[1|user@Nokia-N900|~]ls -l -a /etc/init.d | grep -i avahi |
Re: mDNS support for Maemo 5
Ok, now I found problem why avahi-daemon is not starting. It is because upstart trying it start before /opt is mounted and avahi-daemon is optified.
I will fix it ASAP and push new version of avahi-daemon to extras-devel. |
Re: mDNS support for Maemo 5
Package is fixed in extras-devel for a long time. But I do not have permissions to promote it to extras-testing and extras...
|
Re: mDNS support for Maemo 5
this is a cool package
|
Re: mDNS support for Maemo 5
@pali, I've installed this on my n900 from the repos (-maemo5 package version) and rebooted my phone.
I then installed the Debian avahi/mdns packages on my laptop. Neither is able to ping the .local address of its counterpart. Running avahi-discover on my laptop, I can see only the laptop itself. On the n900, 'ps -ef | grep avahi' shows two processes running okay. And the changes to the /etc/nsswitch.conf file look correct (same as the laptop). Do you have any idea why it might not be working? I guess I can run tcpdump for multicast packets next, if need be. |
Re: mDNS support for Maemo 5
It actually worked, just once, from my laptop to the n900. Then it stopped working some minutes later, while I was testing from the other end.
Running 'tcpdump -i wlan0 -n multicast' on both ends shows requests being sent, but neither end receives the requests from the other. I am beginning to suspect the router (which has really b0rked firmware, e.g. local dns lookups return the router's IP, even for non-existent addresses!). Or possibly the radio in my n900 is dying, because it kept not being able to see the wlan. |
Re: mDNS support for Maemo 5
check also firewall. mDNS using udp multicast port 5353.
iptables for ipv4: Code:
sudo iptables -A INPUT -p udp -d 224.0.0.251 --dport 5353 -j ACCEPT Code:
sudo iptables -A INPUT -p udp -d ff02::fb --dport 5353 -j ACCEPT |
Re: mDNS support for Maemo 5
Thanks pali. I'm running a server install of Debian Wheezy. My iptables look like this :
Code:
# iptables -L So it would seem this piece of junk Huawei HG556a router is to blame, even with the most recent firmware. I can't believe hw manufacturers can release such broken pieces of junk! |
Re: mDNS support for Maemo 5
Please vote for extras-testing packages, so mDNS support can be promoted to Extras:
http://maemo.org/packages/package_in...s-support/0.1/ http://maemo.org/packages/package_in....10-3.1maemo1/ http://maemo.org/packages/package_in....6.24-0maemo5/ http://maemo.org/packages/package_in....6.24-0maemo5/ http://maemo.org/packages/package_in....6.24-0maemo5/ |
All times are GMT. The time now is 10:21. |
vBulletin® Version 3.8.8