• About
  • Contact

Dagny's Desk

Dagny's Desk

Tag Archives: DNS

OS X Mavericks Flush or Empty DNS Cache

11 Friday Apr 2014

Posted by Dagny Gromer in apple mac, osx

≈ Leave a comment

Tags

DNS, flush dns cache, os x mavericks

Too geeky? Nah.  I needed to flush or empty the DNS cache on my iMac. DNS means Domain Name System, it is the internet’s tool that maps a human friendly URL such as dagnygromer.wordpress.com to a numeric IP address like 66.155.11.238 The DNS is a distributed system where many domain name registrars maintain these mappings. I needed to change the web host that one of the domains I own maps to, so I logged into my domain account at 1and1.com and made the change.  When I went to the URL, it still went to the old web host. The domain change takes some time to work its way through the distributed DNS so I waited a while – it can take from a few minutes to a few days. Gary was able to get to the new web host OK, I was not. The problem was the out of date domain mapping was being cached by OS X. This is normal and speeds things up, but I had outdated info in my DNS cache so I needed to flush or empty it which forces my computer to get new DNS information from the internet.

Long story I know. Anyway to flush or empty the DNS cache on OS X Mavericks open the terminal application and type or copy and paste in the following line. Then press return or enter.

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

You’ll be asked to enter an administrative password. sudo means “run this command as a system administrator”.

DNS info comes from specialized servers. To see how your mac accesses the DNS system:  Run System Preferences (click the Apply icon at the top left of your screen for a menu to get to this) then click on Network, then Advanced, then the DNS tab and you will see a list of IP addresses. Each is a DNS server, you generally have a few of these listed. If one is busy or not available OS X tries another one. Don’t alter this list unless you are confident in what you are doing.

Advertisement

Pages

  • About
  • Contact

Recent Posts

  • Cormorant eating a trout
  • Duck eating crayfish
  • Northern shoveler
  • Sparrow
  • Bald eagles

Recent Comments

Dagny Gromer on Anya RIP
rachelmankowitz on Anya RIP
Dagny Gromer on macOS Monterey
Dagny Gromer on Arizona is on fire!
Ric on Arizona is on fire!
RSS  Subscribe

Flickr Photos

cormorant_water_landing-20230318-100male_mandarin_duck-20230318-100-Editcormorant-20230318-104
More Photos
March 2023
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Feb    

Archives

Posts by Category

Dagny on Twitter

My Tweets

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Dagny's Desk
    • Join 640 other followers
    • Already have a WordPress.com account? Log in now.
    • Dagny's Desk
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar