<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On this CentOS Linux release 7.3.1611
      (Core) box:<br>
      <br>
      [root@vega ~]# ls -ald /var/run/avahi-daemon/<br>
      drwxr-xr-x. 2 avahi avahi 80 Mar 24 05:10 /var/run/avahi-daemon/<br>
      <br>
      -Dan<br>
      <br>
      On 03/27/2017 10:41 AM, Ken D'Ambrosio wrote:<br>
    </div>
    <blockquote class=" cite"
      id="mid_6d245641771da5c13287c9f01d22d43f_jots_org"
      cite="mid:6d245641771da5c13287c9f01d22d43f@jots.org" type="cite">
      <pre wrap="">Yay, strace.  I'm guessing people don't use Avahi for service discovery 
a whole bunch these days -- at least, on Ubuntu 16.04.  (Which makes me 
wonder what people *do* use -- if anyone has a suggestion for service 
discovery on a network where *no* IPs are known in advance, I'm all 
ears.)  Anyway:
Strace output:
connect(4, {sa_family=AF_LOCAL, 
sun_path="/var/run/avahi-daemon/socket"}, 110) = -1 EACCES (Permission 
denied)

root@clients-1:~# ls -ald /var/run/avahi-daemon/
drwx------ 2 avahi avahi 80 Mar 27 05:35 /var/run/avahi-daemon/

root@clients-1:~# chmod 777 /var/run/avahi-daemon/
root@clients-1:~# ping kentest.local
PING kentest.local (192.168.243.16) 56(84) bytes of data.
64 bytes from 192.168.243.16: icmp_seq=1 ttl=64 time=1.31 ms
64 bytes from 192.168.243.16: icmp_seq=2 ttl=64 time=0.742 ms

Weird, I tells ya'.  *wanders off to file a bug report*

-Ken

-----------------------------------------------------------------------------

On 2017-03-27 10:17, Ken D'Ambrosio wrote:
</pre>
      <blockquote class=" cite" id="Cite_1047872" type="cite">
        <pre wrap="">Hi, all.  For service discovery on a cloud subnet, I'm trying to get 
the
different VM's to resolve each other -- by strong preference, 
seamlessly
-- via Avahi.  And it works... kinda:

root@clients-1:~# avahi-resolve -n -4 kentest.local
kentest.local        192.168.243.16   # This is a good thing


These, not so much good:
root@clients-1:~# ping kentest.local
ping: unknown host kentest.local
root@clients-1:~# host kentest.local
Host kentest.local not found: 3(NXDOMAIN)


Here's my pertinent nsswitch line:
hosts:          files mdns4_minimal [NOTFOUND=return] dns


Since the daemon is clearly replying with correct info, I assume I'm
doing something wrong client-side (though as I've never done this
before, I guess it could still be a server-side issue).  Any hints or
ideas?

Thanks,

-Ken
_______________________________________________
gnhlug-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gnhlug-discuss@mail.gnhlug.org">gnhlug-discuss@mail.gnhlug.org</a>
<a class="moz-txt-link-freetext" href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a>
</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
gnhlug-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gnhlug-discuss@mail.gnhlug.org">gnhlug-discuss@mail.gnhlug.org</a>
<a class="moz-txt-link-freetext" href="http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/">http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/</a>

</pre>
    </blockquote>
    <p><br>
    </p>
    <span class="st4cursor"></span>
  </body>
</html>