You are not logged in.

#1 2016-01-29 04:01:32

stoye
Member
Registered: 2015-09-12
Posts: 2

Avahi Issues

Hey there all. I've moved into a new place and have been working on setting up my home network. I finally got everything set up this weekend and it has been working great for the past 4 or 5 days. However, today I've started seeing a couple issues. They all seem to tie back into my Avahi hostnames not resolving all the time.

I have two boxes set up on my network with Avahi: my desktop (smeagol) and my media server (saruman). Their

/etc/nsswitch.conf

both look as follows:

    # Begin /etc/nsswitch.conf

    passwd: files
    group: files
    shadow: files

    publickey: files

    hosts: files mdns_minimal [NOTFOUND=return] dns myhostname
    networks: files

    protocols: files
    services: files
    ethers: files
    rpc: files

    netgroup: files

    # End /etc/nsswitch.conf

From what I understood from the wiki-page on Avahi (and from the fact that it's been working fine for several days) this is all fine (though if there are changes I should make, let me know - I haven't delved too deep into Avahi things beyond getting [hostname].local to resolve correctly on my local network).

The /etc/hostname files on both boxes contain their respective hostnames, and avahi-daemon.service is running and enabled on both boxes, neither reporting any errors.

How I know there are issues:

ssh [hostname].local from either box doesn't work most of the time. When it does, it's after waiting for ~5 minutes.

avahi-browse -alr from smeagol outputs:

    +   eno1 IPv4 myrouter                                      Web Site             local
    =   eno1 IPv4 myrouter                                      Web Site             local
       hostname = [myrouter.local]
       address = [192.168.1.1]
       port = [80]
       txt = []

Notice no saruman.local entries (where there used to be several). Running the same thing on saruman outputs:

    + enp5s0 IPv6 Music Player                                  Music Player Daemon  local
    + enp5s0 IPv4 Music Player                                  Music Player Daemon  local
    + enp5s0 IPv4 myrouter                                      Web Site             local
    = enp5s0 IPv4 myrouter                                      Web Site             local
       hostname = [myrouter.local]
       address = [192.168.1.1]
       port = [80]
       txt = []
    = enp5s0 IPv6 Music Player                                  Music Player Daemon  local
       hostname = [smeagol.local]
       address = [2601:197:500:ffaa:3285:a9ff:fe97:524d]
       port = [6601]
       txt = []
    = enp5s0 IPv4 Music Player                                  Music Player Daemon  local
       hostname = [smeagol.local]
       address = [192.168.1.116]
       port = [6601]
       txt = []

This is showing smeagol, but when I try to connect (ssh in, open an mpd client to smeagol's mpd server, etc) I get timeouts or nothing.

Curiously, running avahi-resolve-host-name saruman.local yields:

saruman.local	2601:197:500:ffaa:82ee:73ff:fe67:eb66

or

saruman.local 192.168.1.140

And likewise running avahi-resolve-host-name smeagol.local yields the appropriate results.

I'm really scratching my head on this one, and have no clue where to start since things were working perfectly fine a day ago. Any advice/help will be much appreciated, sorry for novel of a post.

Offline

#2 2017-06-12 21:41:04

lilorox
Member
Registered: 2011-10-16
Posts: 25

Re: Avahi Issues

I'm facing the same problem, did you find a solution?

Offline

Board footer

Powered by FluxBB