Bug#892854: Hostname resolution getting stuck for many seconds

2018-08-10 Thread Matthijs van Duin
On 10 August 2018 at 18:50, Simon McVittie wrote: > Which nss-mdns version are you using? 0.14.1-1 > What's in the hosts: line in your /etc/nsswitch.conf? I currently have: hosts: files mymachines mdns_minimal resolve [!UNAVAIL=return] dns myhostname but I also tried some

Bug#892854: Hostname resolution getting stuck for many seconds

2018-08-10 Thread Simon McVittie
On Mon, 06 Aug 2018 at 13:41:27 +0200, Matthijs van Duin wrote: > This problem seems to be cause by the local_soa() call in src/util.c Which nss-mdns version are you using? What's in the hosts: line in your /etc/nsswitch.conf? I suspect that you and Eduard might be experiencing different issues

Bug#892854: Hostname resolution getting stuck for many seconds

2018-08-06 Thread Matthijs van Duin
The following patch fixes the problem for me: diff --git c/src/util.c w/src/util.c index aaebd62..594ed42 100644 --- c/src/util.c +++ w/src/util.c @@ -62,7 +62,7 @@ int verify_name_allowed_with_soa(const char* name, FILE* mdns_allow_file) { case VERIFY_NAME_RESULT_ALLOWED: return

Bug#892854: Hostname resolution getting stuck for many seconds

2018-08-06 Thread Matthijs van Duin
This problem seems to be cause by the local_soa() call in src/util.c that I presume was introduced as part of this "feature" listed in NEWS: * nss-mdns now implements [standard heuristics](https://support.apple.com/en-us/HT201275) for detecting `.local` unicast resolution and will

Bug#892854: Hostname resolution getting stuck for many seconds

2018-03-14 Thread Simon McVittie
On Wed, 14 Mar 2018 at 20:01:07 +0100, Eduard Bloch wrote: > I cannot remember having touched [nsswitch.conf] on this system. And I > guess that if you have a record of all versions installed in the past > then it should be easy to detect a pristine copy of that file and > update/replace it as

Bug#892854: Hostname resolution getting stuck for many seconds

2018-03-14 Thread Eduard Bloch
Hallo, * Simon McVittie [Tue, Mar 13 2018, 11:36:11PM]: > On Tue, 13 Mar 2018 at 20:52:28 +0100, Eduard Bloch wrote: > > I checked the process with strace and saw something weird. My DNS was > > accessed, was queried, it returned data, then the connection was closed > > and then it started doing

Bug#892854: Hostname resolution getting stuck for many seconds

2018-03-13 Thread Simon McVittie
On Tue, 13 Mar 2018 at 20:52:28 +0100, Eduard Bloch wrote: > I checked the process with strace and saw something weird. My DNS was > accessed, was queried, it returned data, then the connection was closed > and then it started doing something with your library and THAT is where > it didn't

Bug#892854: Hostname resolution getting stuck for many seconds

2018-03-13 Thread Eduard Bloch
Package: libnss-mdns Version: 0.10-8 Severity: normal Hi, a few days ago I realized that something wrong is going on. The route started freezing for no apparent reason, also ssh logins (which probably include reverse hostname resolution) were stuck and even could timeout. I figure that this