Solved

Macbook cache issues

Posted on 2014-10-20
10
268 Views
Last Modified: 2014-10-21
Hi

There is one macbook on the network out of 15 macs and there has been a over the weekend change with the DNS settings for the company website. I have also updated the DNS records on the local server.

But this one mac still refuses to go to the new website even after resetting the cache of all browsers (safari, chrome, firefox) and i have tried this command

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

sudo launchctl load /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist


and

sudo dscacheutil -flushcache

but no luck i have also tried deleting the cache.db for safari in the library folder.

I have tried creating a new users and that didnt work either.

I have tried a different network with a different internet connection, so the problem is on the mac but i can find out where??

Thanks

David
0
Comment
Question by:David
  • 4
  • 4
  • 2
10 Comments
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40392391
Try it in this order

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

I would also verify that the mac is using the correct IP for the internal DNS server to resolve hosts.
0
 
LVL 53

Expert Comment

by:strung
ID: 40392413
Yes. Check the DNS settings in the network prefs.
0
 

Author Comment

by:David
ID: 40392471
Hi, i checked the DNS, they are pulled via the DHCP and were fine, and i ran both them commands with no luck. Anything else?
0
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40392475
What version of OSX is that computer running? 10.9.X?
0
 

Author Comment

by:David
ID: 40392480
its 10.8.5 or 10.8.6
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 53

Accepted Solution

by:
strung earned 500 total points
ID: 40392485
If you ping the website by URL (not by IP address), does it resolve to the old or new address?

Also, is there any possibility that someone has edited the /etc/hosts file to explicitly resolve the web site to the old address?

Pull down the Go menu in Finder to GO to Folder and copy and paste the following into the box and hit return:

/etc

Scroll down to the "hosts" file. You can open and edit it with the freeware TextWrangler:  

http://www.barebones.com/products/textwrangler/

(If you are comfortable enough with Terminal, you can also us the line editor in Terminal to edit  the hosts file.)

If you find a line in the hosts file referring to the website in particular, deleting that line and restarting the computer should solve your problem. Alternatively change the IP address in the hosts file from the old to new IP in the line referring to the website, save and restart.
0
 

Author Comment

by:David
ID: 40392488
When pinged the old IP appears, which explains why the old website loads

i will have a look at the hosts file and i will also ask the user to look at updating to 10.9 via the app store
0
 
LVL 53

Expert Comment

by:strung
ID: 40392496
Updating to 10.9 is not likely to solve the problem. Check the hosts file first.

You could alway put in an explicit route to the new web site in the hosts file. If you are not familiar with the hosts file, here is some information:

http://www.tekrevue.com/tip/edit-hosts-file-mac-os-x/
0
 

Author Comment

by:David
ID: 40393845
Thanks for that! It was the host file. Do you know by any chance why that happened? And what should it usually have in the host file?
0
 
LVL 53

Expert Comment

by:strung
ID: 40394353
If your server was in the hosts file, someone added it manually. The default hosts file has almost nothing in it. The link I posted above shows the default hosts file.  

I use it to block ad sites and popups by redirecting their URL to 0.0.0.0
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The error "There was an error performing the update" occurred on a Mac OS X client workstation running  Symantec AntiVirus for Mac (http://www.symantec.com/business/products/purchasing.jsp?pcid=pcat_security&pvid=825_1) - the Enterprise product vers…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now