If I issue a 'wget' command to a symbolic IP address that is know to be bad, I am getting a HTTP return code of 200:
# wget obviousbogus.com
--2011-10-06 10:02:07--
http://obviousbogus.com/
Resolving obviousbogus.com... 92.242.140.30
Connecting to obviousbogus.com|92.242.140.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
If I enter a numeric IP, this does not happen--wget fails and times out.
The same thing is happening inside one of my applications. To check the validity of a URL, I do an open of TCP port 80 and find that bad URLs are marked as valid. (The app is in MUMPS, which is probably not familiar to most people on this list.)
I would blame the DNS nameserver, but on Windows, using the same nameserver, the application works correctly.
I can probably figure out how to work around this, but if anybody has any understanding of why this might be happening on Linux and not Windows, I would appreciate the insight.
My OS is RHEL 5.6.
Thanks,
Sanford Stein
CyberTools Inc.