General

Profile

nemski (Patrick Robinson)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

02/04/2016

10:54 PM Ruby Bug #11443: DNS name resolution takes twice as long as it should when primary name server is unavailable
I retested this again today and could only replicate it on Ubuntu Lucid, not Ubuntu Trusty or Debian Jessie. nemski (Patrick Robinson)

08/15/2015

10:54 AM Ruby Bug #11443: DNS name resolution takes twice as long as it should when primary name server is unavailable
Doing an strace I can see the DNS lookup occurs twice (with and without a failing name server):
~~~
[pid 32129] socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 7
[pid 32129] connect(7, {sa_family=AF_INET, sin_port=htons(53),...
nemski (Patrick Robinson)

08/14/2015

04:42 AM Ruby Bug #11443 (Closed): DNS name resolution takes twice as long as it should when primary name server is unavailable
On linux /etc/resolv.conf can be configured to set the timeout of a nameserver before trying the next one (defaults to 5 seconds). So in the event of a failed name server we expect the time taken to resolve a hostname will be timeout + q... nemski (Patrick Robinson)

Also available in: Atom