[avahi] Name resolution problem

Ross Burton ross at burtonini.com
Mon Sep 5 00:55:57 PDT 2005


Hi,

(Lennart will recognise this problem but I've more data so I'll send it
to the list)

Currently I have a number of Intel-based desktops and laptops, and a
PPC-based NAS device.  I've just compiled a stripped-down Avahi 0.2 (no
GLib or Python) on the PPC but am seeing interesting behaviour.

I have to use --no-drop-root as the PPC has kernel 2.4 and with that
version only root processes can bind() to netlink devices.  It would be
good if Avahi could detect kernel 2.4 and drop root later.

Then it starts up okay:

Sep  5 08:48:06 localhost avahi-daemon[26288]: avahi-daemon 0.2 starting up.
Sep  5 08:48:06 localhost avahi-daemon[26288]: Failed to read service directory.
Sep  5 08:48:06 localhost avahi-daemon[26288]: New relevant interface eth0.2.
Sep  5 08:48:06 localhost avahi-daemon[26288]: Network interface enumeration completed.
Sep  5 08:48:06 localhost avahi-daemon[26288]: Registering new address 192.168.10.105 on eth0.
Sep  5 08:48:07 localhost avahi-daemon[26288]: Server startup complete. Host name is melchett.local.

On a desktop machine:

$ ping flashheart.local
PING flashheart.local (192.168.10.106) 56(84) bytes of data
...
$ ping melchett.local
ping: unknown host melchett.local

At this point I'm guessing there is a byte-order problem somewhere.
However, if I use avahi-browse:

$ avahi-browse  _workstation._tcp
Browsing for services of type '_workstation._tcp' (Workstation) in domain 'local' on any.0 ...
Found service 'melchett [00:07:40:fb:e9:ee]' of type '_workstation._tcp' (Workstation) in domain 'local' on eth1.2.
Found service 'flashheart [00:04:23:7f:1a:40]' of type '_workstation._tcp' (Workstation) in domain 'local' on eth1.2.
Service data for service 'flashheart [00:04:23:7f:1a:40]' of type '_workstation._tcp' (Workstation) in domain 'local' on eth1.2:
        Host flashheart.local (192.168.10.106), port 9, TXT data: []
Error: Timeout reached

The workstation name is being broadcast, but the name resolution isn't.
I'm about to start hitting the network with ethereal, but I though I'd
post now in case anyone has any good ideas.

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF





More information about the avahi mailing list