Thank you all. i have pasted the code on pastebin. http://pastebin.com/embed_iframe.php?i=kHAUJQC2 My one main question in the code is that there are times when my thread using pythonwhois hangs up the process by statying active very long time. can i hope for a better solution to this problem. thanks George