from Tkinter import * import tkMessageBox, socket root = Tk() root.title(\"pynet v1.0\") root.config(bg=\'black\') root.resizable(0,0) text = Text() text1 = Tex
Why are you adding CRLF (\r\n) to the hostname before looking it up?
\r\n
If removing that doesn't fix it, print out the exact text you're passing to gethostbyname to make sure it's a valid hostname.