Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Avahi - now what?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 648

PostPosted: Sat Jan 30, 2010 2:47 pm    Post subject: [SOLVED] Avahi - now what? Reply with quote

So I set avahi up, because I'm sick of attempting to maintain a herd of host.conf files on my 3 different systems on a network with a dhcp server that insists on giving me a different IP each and every time I logon. And it works. I can type 'avahi-browse -atr' and it gives me a list of hosts, services, and ip addresses of what's on the network, so now I don't have to nmap or login and ifconfig to get find ip addresses, and it's less error prone. And it's great.

The question is, how do I go about using all that dns info in a more transparent manner? How can I ssh to my laptop with 'ssh eee.local'? How can I mount my cifs share with 'mount -t cifs \\\\media-server\\share /mnt/media'?

edit: I don't control the dhcp server. I know setting the dhcp server up in a sane fashion is the correct solution, but I can't, unfortunately.
_________________
My political bias.


Last edited by pigeon768 on Tue Feb 09, 2010 8:01 am; edited 1 time in total
Back to top
View user's profile Send private message
gerdesj
Guru
Guru


Joined: 29 Sep 2005
Posts: 508
Location: Yeovil, Somerset, UK

PostPosted: Mon Feb 01, 2010 1:28 am    Post subject: Re: Avahi - now what? Reply with quote

I'm not a expert here but have you enabled Avahi support in the applications that support it? ie USE=avahi and recompile all apps that use it (emerge --deep --newuse world.)

Cheers
Jon
Back to top
View user's profile Send private message
salahx
Apprentice
Apprentice


Joined: 12 Mar 2005
Posts: 296

PostPosted: Mon Feb 01, 2010 11:32 pm    Post subject: Reply with quote

In additional to Avahi, you also need nss-mdns. And you'll need to modify /etc/nsswitch.conf too. Be very careful editing this file, as you can lock yourself out of the machine.
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 648

PostPosted: Tue Feb 09, 2010 8:00 am    Post subject: Reply with quote

salahx wrote:
In additional to Avahi, you also need nss-mdns. And you'll need to modify /etc/nsswitch.conf too. Be very careful editing this file, as you can lock yourself out of the machine.
Yup, this fixed it - thanks. Changed:
Code:
hosts:          files dns
to:
Code:
hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

_________________
My political bias.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum