Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does avahi need reverse DNS in a LAN?
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
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Sep 20, 2011 2:43 pm    Post subject: Does avahi need reverse DNS in a LAN? Reply with quote

Hi all.

I wanted to give Avahi a try and installed nss-mdns for I don't need the whole Avahi implementation on my laptop. My home network has a .local domain name suffix. I have noticed when I change the hosts: line in nsswitch.conf (hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4), name resolution no longer works at home. Now I'm at work with avahi-daemon service started and it seems to work.

Strangely enough, when I'm home, tools like dig and host return results while ping <host> returns it can't find the host. When I'm at work everything seems to function normally and I have no time out.

The only one thing I'm thinking of at home is that my Wifi/DSL router has no local DNS, i.e. it is only a DNS forwarder with no local name resolution based on the leases, like dnsmasq, for instance. As a matter of fact, so far, everytime I lookup for a host (dig or host commands) on my local network, for instance, the lookup operation fails with a time-out (which is logical since my router forwards the NS requests to my ISP DNS serverrs)...

So my question is: is my issue linked with the absence of a proper name resolution server in my local network?

Thanks in advance for any hint or suggestion.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Sep 20, 2011 2:59 pm    Post subject: Reply with quote

Quote:
My home network has a .local domain name suffix

mDNS uses this suffix. You need to either change your domain or edit the .local default in every avahi config file used on the network.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Tue Sep 20, 2011 3:28 pm    Post subject: Reply with quote

Ant P. wrote:
You need to either change your domain or edit the .local default in every avahi config file used on the network.

Thanks Ant P. There must be something I don't get however... I think I read the .local suffix was for local network where you have no official domain... Will, for example, .localdomain work then? What should be the domain name for local networks?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Sep 20, 2011 3:30 pm    Post subject: Reply with quote

AFAIK you can make up anything.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
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