Basically; if jb'd, you need the entries, and not hashed (the # disables the line)Run the command in the terminal on the Mac, not the phone. If you have Windows, I think the hosts file is located in C:/Windows/system32.
If vanilla (no jb), you want to avoid redirecting requests to apple servers, so either delete or add a # to the mentioned lines if present.
In my case; windows system just had a block list generated by spybotSD. No apple entries; so I thought I'd remove the whole lot just in case. Made no difference.
File on windows is /windows/system32/drivers/etc/hosts