VectorLinux

The nuts and bolts => Networking & Security => Topic started by: askfor on October 30, 2015, 10:20:34 am

Title: VL71 Avahi anyone ?
Post by: askfor on October 30, 2015, 10:20:34 am
Has anyone managed to get that strange beast to work ? By that I mean to resolve LAN machine names into IP's. Has anyone tried ?
My guess is that libnss-mdns is missing. Not sure, but I don't have that lib on my disk. I might try download it from Slackware. Or is it provided by some other package ?
Title: Re: VL71 Avahi anyone ?
Post by: bigpaws on October 30, 2015, 08:44:37 pm
You have two options set up a dns server
or you can add the hosts on your lan to
/etc/hosts file.

Bigpaws
Title: Re: VL71 Avahi anyone ?
Post by: askfor on October 31, 2015, 01:17:14 am
I don't have a machine which runs 24/7, so server is not an option. Besides, I am getting IP addresses from DHCP running on home router provided by my ISP. I've read a bit about Avahi. That thing is supposed to do several things:

1. Helps discover services on LAN, link finding shared printers

2. When a network connection is being initiated, it sends multicast query, like "who is host named 'Lexx'". When answer arrives all host on LAN which run Avahi can store it in their caches

3.  Provides additional nsswitch.conf interface for "old school" C runtime library functions, like 'gethostbyname()', allowing 'normal' programs, like ping to benefit from it.

I was able to resolve names by avahi-resolve program. My guess is it means that multicast part works. However, I can't ping anyone. Also, libnsssmdns is missing, so I figured out that nsswitch interface is not working.
Title: Re: VL71 Avahi anyone ?
Post by: askfor on October 31, 2015, 02:37:40 am
Avahi, mdns and libnss-mdns seem to be developed by Lennart Poettering. I didn't know that before. That explains it all. As far as I am concerned, this discussion is over.
 
Title: Re: VL71 Avahi anyone ?
Post by: wigums on November 03, 2015, 11:14:14 am
lol cheer cheer
golf clap
Title: Re: VL71 Avahi anyone ?
Post by: M0E-lnx on November 03, 2015, 01:41:42 pm
/me nods