I am new to python and network programming and I am having trouble with a simple program. I am basically opening a connection to a nonexistent website and somehow it seems t
You might be using an ISP that fakes DNS results in order to give you a spam page helpful search page instead of an error for nonexistant names.
What does a ping Nonexistentsite.com result in on the machine where you tested your Python code?
ping Nonexistentsite.com