lynx, curl, fopen bringing up a site when DNS not found?
I have a problem I hope ya'll can help me with. The machines having issues are running various versions of Redhat, from 7.3 to 9.0.
When writing a script in PHP, I came across a weird issue when attempting to check the status of a few sites. If the domain is registered, but not in the nameservers specified by the whois information, my browser gives a "domain could not be found" error. However, on a couple of my servers, when I use lynx, curl, or fopen (php), I end up being directed to another one of my servers' IP addresses and it beings up the site for it.
After looking around trying to find anything on this, I am out of ideas. Maybe a DNS issue with our servers? I have changed the resolv.conf on a server to use different dns servers, issue still persists.
Entries in the 'hosts' file causing the issue? Already tried removing everything from the hosts file to see if it was causing issues, but no luck there.
If anyone has any other ideas to try, please let me know.