| View previous topic :: View next topic |
| Author |
Message |
pigeon768 l33t

Joined: 02 Jan 2006 Posts: 648
|
Posted: Sat Jan 30, 2010 2:47 pm Post subject: [SOLVED] Avahi - now what? |
|
|
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 |
|
 |
gerdesj Guru


Joined: 29 Sep 2005 Posts: 508 Location: Yeovil, Somerset, UK
|
Posted: Mon Feb 01, 2010 1:28 am Post subject: Re: Avahi - now what? |
|
|
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 |
|
 |
salahx Apprentice

Joined: 12 Mar 2005 Posts: 296
|
Posted: Mon Feb 01, 2010 11:32 pm Post subject: |
|
|
| 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 |
|
 |
pigeon768 l33t

Joined: 02 Jan 2006 Posts: 648
|
Posted: Tue Feb 09, 2010 8:00 am Post subject: |
|
|
| 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:to: | Code: | | hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 |
_________________ My political bias. |
|
| Back to top |
|
 |
|
|
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
|
|