oh wait, i remember seeing a malware that damages the hosts file, last month, my cousin told me that she couldn't go to facebook or gmail, so i wanted to download avg internet security to scan the pc, but that didn't load either, it turned out that there's a malware that damages the hosts file on windows.
In your case it's highly improbable, but it is still a possibility, because you download torrents, torrents are perfect to spread malware and viruses.
So I'd suggest you do the following:
download
malwarebytes
and
Malwarebytes Anti-Rootkit BETA
do a full scan, once your done, download
HostsXpert and click "restore original hosts file"
More info can be found
here but i didn't use all the software posted there, you just need to follow the steps above,
It is better if you go to safe mode when your scanning the pc.