Re:The danger of the trailing dot in the domain name
by joosters on Saturday March 16, 2013 @09:11AM
(#5385318)
That's odd, I would have thought that '404 Not Found' would be the wrong response to send, although you could argue either way.
I used to develop a web server ages ago (Zeus Web Server), it would try and match the Host: header against all the sites it was configured to server, and if none matched, it would send a 400 error back.
(Incidentally, it would happily strip off the trailing dot from the hostname)
When you try the same host with a trailing dot, you get a generic IIS error 400.
This is too much of a coincidence and I value it as a strong sign that my hypothesis might be correct. I have no IIS at my disposal to replicate paulbeattie's experiment, but the outcome he described further helps confirming my suspicion (no matter the downvotes he got)
Same experiment works with microsoft.com too: