0

I probably had some mis-understanding toward host files. so my understanding is that hosts file is the first priority DNS lookup place.

sometimes I will encounter some annoying websites like this one wo1.shouyoushe.com. I guess my ISP send that damn thing to me. so I just want to block anything from this place to show up on my computer. so I added this line to my hosts file on Mac

127.0.0.2   wo1.shouyoushe.com

just some address that don't exist. but after I flush the DNS cache, it is still there When I try to access it.

what is the issue ? is there a more appropriate way to do this on MAC ?

1 Answer 1

1

Try 127.0.0.1 which is localhost, i.e., 'me'

Also, flush DNS changed after 10.6 so it depends what OS you're on

10.6 or earlier

sudo dscacheutil -flushcache

10.7 or later

sudo killall -HUP mDNSResponder 
1
  • bingo, I used the old command against 10.9 OSX. solved.
    – zinking
    Commented Aug 21, 2014 at 8:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .