2

I've been having an intermittent issue recently on my MacBook Pro: every so often, I'll start getting bad DNS results. For example: I type in facebook.com, and another website loads up instead of Facebook. If I clear the DNS cache with dscacheutil -flushcache, the problem is instantly fixed, but that doesn't stop it from happening again, of course. This happens with OpenDNS, Google's DNS, and my ISP's DNS, so it's definitely not the DNS server. I am at a loss trying to figure out what might be happening. Any ideas?

2
  • What browser are you using? Is it happening with other sites too?
    – Olli
    Commented Feb 24, 2011 at 8:20
  • I had a similar problem once where the way Mac OS X 10.6 was communicating with my wireless router was causing exactly such strange hiccups, in a way that other (10.5) computers on the same network were experiencing the same. Upgrading the firmware on the router fixed the problem.
    – Asmus
    Commented Feb 24, 2011 at 9:30

2 Answers 2

1

The question remains unsolved of where do these bad DNS entries come from in the first place. If this was not a Mac, I would have advised a virus scan. But in any case, I would check any extensions currently installed in your browser, or try Safe mode (without extensions), or try another browser.

Another possibility might be that your router is caching the bad DNS. Check if there is any setting for turning this off, or a firmware update. It might also help to know which model is the router and its firmware version.

This blog could also maybe be of help : Clear DNS Cache on your router.

With your router's exact make, I was able to find WRT160N V3 has serious DNS issues.
It seems you are not alone. It says :

I've just configured the TCP/IP on my PC to not automatically obtain DNS server addresses, instead I put in my ISP's servers manually.

Everything has been absolutely trouble-free since I manually took the router address out of my DNS server list two days ago. I'm satisfied that the DNS proxy dis-service that is built into the WRT160N v3 is entirely responsible for the screwy DNS issues described above.

3
  • Hmm.. if my router were caching these bad results, though, wouldn't flushing my computer's cache not fix it then? In any case, I have a WRT160Nv3 Linksys router with firmware version 3.0.02.
    – jwkpiano1
    Commented Feb 25, 2011 at 8:41
  • See my addition above.
    – harrymc
    Commented Feb 25, 2011 at 9:29
  • I just went ahead and installed dd-wrt while I was at it.. everything seems to be going smoothly now. Thanks!
    – jwkpiano1
    Commented Feb 26, 2011 at 6:46
0

I agree with Answer 1. The sites you are getting re-directed to - are they normal sites ? or site such as porn gambling pills etc ?

Have you used nslookup or digg before and after the DNS cache flush ? Does the command line lookup match the browser lookup ? if not then it sounds like something maybe manipulating your browser.

2
  • Just normal sites. I was sent to Moviefone.com instead of Facebook once.
    – jwkpiano1
    Commented Feb 25, 2011 at 8:37
  • There is no "Answer 1" in this website - this isn't an ordered blog. See the FAQ.
    – harrymc
    Commented Feb 25, 2011 at 9:28

You must log in to answer this question.

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