I have a weird issue on my server in that if I use curl or lynx to try and access a URL that doesn't exist (say a non registered domain, or a domain that's not in DNS), I don't get an error, it instead delivers me to the default locally hosted website.
For example:
"lynx http://jksodf89s9df9sudfisdf.com" or "curl http://jksodf89s9df9sudfisdf.com"
Both of these should clearly return an error (404, "Can't resolve", or something similar I'm guessing) as they don't exist - but instead I get the Apache holding page that is currently set as my default website for Apache on the server.
I can only assume it's a DNS or Apache config issue, but I just can't see what would allow non existant domains to be redirected to localhost.
nslookup jksodf89s9df9sudfisdf.comsay? I think that it's a DNS issue as Apache itself has absolutely nothing to do with what curl/lynx/wget/... do to resolve hosts.getent hosts jksodf89s9df9sudfisdf.comto see what the libc resolver thinks.search *****.co.ukline in your /etc/resolv.conf that you might want to remove (unless you depend on the domain expansion)