From: Victor 'Zverok' Shepelev Date: 2008-09-06T18:41:21+09:00 Subject: Re: TCPSocket#initialize slow on Windows From: rogerpack2005@gmail.com [mailto:rogerpack2005@gmail.com] Sent: Friday, September 05, 2008 6:53 PM > >> I've kinda tried 127.0.0.1 and it was the same slow... and after I've >> tried >> your advice and required 'resolv-replace', all things became fast. But >> then, >> when I commented out "require 'resolv-replace'", they are still fast. >> I'm >> slightly shocked for now. Are there any explanations, or just it some >> kind >> of network magic I'll never debug about? >> >> Anyway, thank you for advice. > >Kind of reminds me of OS X 10.5's DNS problems--the first lookup >sometimes takes 15s, then after that it's cached so it's fast. Maybe? >The fix for that on OS X was to switch to opendns name servers. Not >sure about XP tho. >-=R Thanks for your help. It seems now the problem somewhere deeper in my test-cases :-\ BTW, while experimenting I've found resolv not able to resolve LAN names. BTW2, I've also found ruby1.9's Resolv fails with unicode errors (reading etc/hosts) on Russian Windows XP :) V.