Ideal timeout period for dns lookup

Posted by railscoder on Stack Overflow See other posts from Stack Overflow or by railscoder
Published on 2010-06-14T09:10:17Z Indexed on 2010/06/14 9:12 UTC
Read the original article Hit count: 197

Filed under:

In my rails app i do a nslookup using a ruby library resolv. If the site like dgdfgdfgdfg.com is entered its talking too long to resolve. in some instance like 20 sec.(mostly for non-existent sites) Because it cause the application to slowdown. So i though of introducing a timeout period for the dns lookup. What will be the ideal timeout period for the dns lookup so that resolution of actual site doesnt fail. will something like 10 sec will be fine?

© Stack Overflow or respective owner

Related posts about dns