View Single Post
Posts: 2,153 | Thanked: 8,462 times | Joined on May 2010
#1
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
PING Nokia-N900.local (192.168.15.110) 56(84) bytes of data.
64 bytes from Nokia-N900.local (192.168.15.110): icmp_req=1 ttl=128 time=29.4 ms
64 bytes from Nokia-N900.local (192.168.15.110): icmp_req=2 ttl=128 time=51.1 ms
64 bytes from Nokia-N900.local (192.168.15.110): icmp_req=3 ttl=128 time=73.7 ms
...
And from N900 I can ping computer:
Code:
$ sudo ping Pali.local
PING Pali.local (192.168.15.107) 56(84) bytes of data.
64 bytes from Pali.local (192.168.15.107): icmp_req=1 ttl=128 time=96.6 ms
64 bytes from Pali.local (192.168.15.107): icmp_req=2 ttl=128 time=16.5 ms
64 bytes from Pali.local (192.168.15.107): icmp_req=3 ttl=128 time=42.0 ms
64 bytes from Pali.local (192.168.15.107): icmp_req=4 ttl=128 time=1.41 ms
...
I also fixed problem in avahi-daemon package (which create non working /etc/init.d/avahi-daemon script).

http://maemo.org/packages/view/mdns-support/
http://maemo.org/packages/view/libnss-mdns/
http://maemo.org/packages/view/avahi-daemon/
 

The Following 20 Users Say Thank You to pali For This Useful Post: