Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow <host>.local host resolv on LAN with avahi + nss-mdns
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
ivan2k
n00b
n00b


Joined: 10 Sep 2010
Posts: 47
Location: Codognè (TV), Italy

PostPosted: Fri Apr 13, 2012 10:22 pm    Post subject: Slow <host>.local host resolv on LAN with avahi + nss- Reply with quote

Hi guys
I recently noticed a slowdown in remote login via ssh between my gentoo systems.
I use avahi + nss-mdns for local area hostnames resolution with .local domain. With this configuration works for more than 3 years until some days ago.
Now my hostname resolution is very slow, not only for ssh, but for ping too. Example: ping host.local show me instantly the host ip address but answers are very slow despite the low response times and the fast connection.

My /etc/nsswitch.conf is:
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4


If I remove the default gateway with:
Code:
route del default gw 192.168.1.xxx

Then address resolution start working fast.
If I re-add the default gateway, I have slow resolution again.

I think it tries to resolv host.local with internet DNS before use mDNS. Don't know why.

Someone can help?

(sorry for my english)
Back to top
View user's profile Send private message
boospy
Guru
Guru


Joined: 07 Feb 2010
Posts: 307
Location: Austria

PostPosted: Tue May 08, 2012 8:58 pm    Post subject: Reply with quote

This should only a problem when the DNS Service is unavailable. But i know this problem only with IPV6 and in use with "enable-wide-area=no" for a public domain. Can you test your results with:
Code:
hosts:       files dns mdns4
hosts:       files mdns4 dns

Greetings
boospy
Back to top
View user's profile Send private message
ivan2k
n00b
n00b


Joined: 10 Sep 2010
Posts: 47
Location: Codognè (TV), Italy

PostPosted: Tue May 08, 2012 9:43 pm    Post subject: Reply with quote

I forgot about this thread I opened a while ago.
In the mean time I have solved the issue and forgot to remember to post on this thread the solution. Now for completeness I've forgot the solution too. :oops:

Now I'm trying (and hope) to remeber how I did it, so it could help others people in the future.

However boopsy thank a lot for your concern !!
Now I'm struggling with a worse issue.
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