I've been trying to understand exactly how SSL certificates work on a technical level to provide website security. I have a scenario in my head which I believe defeats SSL easily, and I'm wondering if someone can confirm. If someone was able to man-in-the-middle or otherwise become your DNS server, wouldn't it be possible for them to give you fake DNS responses, redirect your HTTPS://securewebsite.tld to their own machine, provide a certificate that website has from a well-known CA, and effectively trick your browser into thinking you're at the actual site, as from what I gather, all the SSL certification does is check domain name, and it will be right to your browser?