[avahi] Setup troubles

Oliver Charles depth.of.field at gmail.com
Mon Feb 13 10:24:42 PST 2006


I have 2 computers - my Windows laptop and this Linux computer. We'll
assume that the laptop is all configured correctly (although it may have
problems). The laptop is primarily used by other members of my family
and they would like to have access to my music. I knew of DAAP and that
Banshee supports it with avahi - so I thought Id try it.

I use gentoo, so I just emerged avahi with the following use flags:
+bookmarks +dbus -doc +gdbm +gtk -howl-compat -mdnsresponder-compat
+mono +python -qt

My avahi-daemon.conf is:
        [server]
        host-name=gentoo
        domain-name=home
        browse-domains=home
        use-ipv4=yes
        use-ipv6=no
        #check-response-ttl=no
        #use-iff-running=no
        enable-dbus=yes
        #disallow-other-stacks=no
        
        [wide-area]
        enable-wide-area=yes
        
        [publish]
        #disable-publishing=no
        #disable-user-service-publishing=no
        #add-service-cookie=yes
        #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
        
        [reflector]
        #enable-reflector=no
        #reflect-ipv=no
        
        [rlimits]
        #rlimit-as=
        rlimit-core=0
        rlimit-data=4194304
        rlimit-fsize=0
        rlimit-nofile=30
        rlimit-stack=4194304
        rlimit-nproc=3

Here I load the daemon:
        gentoo ~ # avahi-daemon
        Found user 'avahi' (UID 103) and group 'avahi' (GID 410).
        Successfully dropped root privileges.
        avahi-daemon 0.6.4 starting up.
        Loading service file /etc/avahi/services/ssh.service.
        *** WARNING: Detected another IPv4 mDNS stack running on this
        host. This makes mDNS unreliable and is thus not recommended.
        ***
        socket() failed: Address family not supported by protocol
        New relevant interface eth0.IPv4 for mDNS.
        Joining mDNS multicast group on interface eth0.IPv4 with address
        192.168.1.2.
        Network interface enumeration completed.
        Registering new address record for 192.168.1.2 on eth0.
        Registering HINFO record with values 'I686'/'LINUX'.
        iface.c: avahi_server_add_service() failed: Not supported
        iface.c: avahi_server_add_service() failed: Not supported
        Server startup complete. Host name is gentoo.home. Local service
        cookie is 1548190695.
        Failed to add service 'Remote Terminal on gentoo' of type
        '_ssh._tcp', ignoring service group
        (/etc/avahi/services/ssh.service): Not supported
        
        (New terminal here):
        gentoo ~ # avahi-dnsconfd
        Successfully connected to Avahi daemon.

Attempting to browse:
        acid at gentoo ~ $ avahi-browse -a
        service_type_browser failed: DNS failure: NXDOMAIN
        
        acid at gentoo ~ $ avahi-browse -D
        +  n/a  n/a home
        domain_browser failed: DNS failure: NXDOMAIN
        
Also, running avahi-discover shows very little, only:
        acid at gentoo ~ $ avahi-discover
        A new main_window has been created
        Browsing domain 'local' on -1.-1 ...
        Browsing domain 'home' on -1.-1 ...
        
        In GTK window:
        
        | + Wide Area
        | ---- home
        
        
A few more details that may help:
        Domain: home
        My int ip: 198.168.1.2
        Laptop int ip: 192.168.1.3
        
        
Any ideas?
- Oliver Charles



More information about the avahi mailing list