Clearing the DNS Cache on Computers and Web Browsers

Follow

Comments

34 comments

  • Avatar
    vasinc

    Didn't seem to work with Mavricks

  • Avatar
    Kristy Patullo

    Thanks for pointing this out.  The latest version of OS X requires the following commands entered in the Terminal in order to flush the DNS cache:

    Enter this command:

    dscacheutil -flushcache

    Then, to reload DNS type this command:

    sudo killall -HUP mDNSResponder
  • Avatar
    island123

    Didn't seem to work for me with Mavricks also. Did both commands - it asks for a password in terminal

  • Avatar
    Kristy Patullo

    These commands must require administrative authority to run in terminal on your device.  If you are the administrator of your device enter your keychain password.

  • Avatar
    sryokan

    dscacheutil -flushcache;sudo killall -HUP mDNSResponder

    same as above but in a single string. 

  • Avatar
    icevirg

    This part worked just like your instructions & illustrations indicated!! Now to purge my web browser caches. ;)

  • Avatar
    drrdm

    I tried the instructions for Mavericks, but when I get to the password request, the terminal won't respond to the keyboard. I type, but nothing shows, so I can't enter my password.

  • Avatar
    rotblitz

    What do the Apple support forums say?  Here are the OpenDNS experts, the Apple experts are somewhere else.

  • Avatar
    paul

    When you type, the Mac will see your password, even if you can't. Trust that you can type the correct password and hit enter. Voila.

  • Avatar
    patechmanager

    This advice needs major revisions

    a) add support for Mac os 10.9

    b) Delete the picture

    c) Add text examples that can copy and paste

    ps: THe picture does not allow me to copy/paste into a terminal.  

     

  • Avatar
    skylar_l

    @island123 and drrdm:

    Mac OS X and I'm pretty sure Linux requires you to enter in the administrator (or Keychain) password to perform this action. When you type in the password, it will NOT show any dots or text (This is a security measure). Just press Enter/Return once you have finished typing it.

    As for Windows Vista, Seven, and Eight: After typing cmd into the search, you need to right click on cmd.exe and click "Run as Administrator"; Then type in "ipconfig /flushdns".

  • Avatar
    Matt Prytuluk

    Hi all,

    Thanks for the feedback, and apologies for the delay in the corrections/updates.  The feedback is greatly appreciated, please let us continue to update this as required, as new operating systems or instructions become available.

    Best regards,

    Matt

  • Avatar
    patechmanager

    Fixed.  Thanks for adding text we can copy and paste.   And thanks for adding OSX 9 command.   Just needed this again today.   It' so easy to google this, then bingo, copy and paste to flush.        We have a lot of educational apps that only work after flushing the DNS cache.   

  • Avatar
    bcrouch5

    My windows isn't working I input - ipconfig /flushdns

    and I get the following error message: The reqested operation requires elevation.

    What does that mean and what's the next step?

    Thanks

    bcrouch5

     

  • Avatar
    skylar_l

    @bcrouch- Quite literally three comments up, I explained that you have to right click on cmd, then click "Run as administrator".

  • Avatar
    jtorres

    I take it Windows Server 2012 is very similar to 2008, but is there anything additional that would need to happen after the forwarders are entered and the ipconfig /flushdns is ran as an admin on the server?

  • Avatar
    rotblitz

    No.

  • Avatar
    ramirgl

    I'm having the same problem.  Running Vista.  After typing cmd in the run menu, the C:\Windows\system32\cmd.exe dialogue box pops up.  I enter ipconfig/flushdns and am told that "the requested operation requires elevation".  I have tried to right click as was suggested above to select "Run as administrator", but that is not an option when I right-click.  I only have the dialogue box properties if I click on the box heading, or "Mark, Paste, Select All, Scroll, Find" if I right click in the box field.  Any advice would be greatly appreciated.  Thanks.

  • Avatar
    rotblitz

    Start > All Programs > Accessories > Right-click "Command Prompt" > Run as Administrator

    (Hoping you don't drive a car with the same skill level for cars. :shocked:)

  • Avatar
    patechmanager

    This is my attempt to help bcrouch5 and ramirgl.

    The failure with "ipconfig" command on your computer is due to security restrictions on your account or computer.  Most likely your computer was purchased and setup by another person with the privileges to maintain the computer.   This is a protection mechanism to keep novice users from  harming their own computer.  

    Your windows computer has several user accounts and you are using an account that does not have the security privileges that are needed to run "ipconfig".      Right click "run as admin" will fail until you logout and logon as an admin user. 

    solutions:  

    a) avoid using ipconfig and istead  reboot.   Just reboot the phone, ipad, tablet, or computer.  In most cases a full restart will flush the DNS cache.   

    b) call a friend who knows windows and networking and can help you and explain this

    b) Use another account on your computer and then use ipconfig.   Go to your control panel , then users, and you should see 2 or more user accounts.    

    Do not use an account with "standard user"

    Do use an account with "administrator"

    note: using ipconfig is a job that requires a lot of networking background and knowledge.   The 2nd sentence written by Chris Frost states that you need administrator privileges.      What is also implied is that you need administrator skills and training.  

  • Avatar
    notfalse

    For Ubuntu it is: sudo service network-manager restart

  • Avatar
    philp777

    Ok, so I reset the setting for DNS and then went to the Start menu and entered "cmd" and then pressed "Enter" and a black window came up and a chill went down my spine. 

    Presumably that black window is the Command Prompt/Terminal where it tells you things about Miccrosoft and says "C:UsersPhillip>"

    So I typed in "ipconfig /flushdns" and it thought about that and said "The requested Operation Requires Elevation" so I took my PC onto the roof but it made no difference!

    Have I gone wrong somewhere?

    Please advise,

    Phil

  • Avatar
    rotblitz

    "went to the Start menu and entered "cmd" and then pressed "Enter""

    This was wrong.  Proceed as I have described in my previous answer to get to the elevated prompt.

    Better copying & pasting it to here for your convenience:

    Start > All Programs > Accessories > Right-click "Command Prompt" > Select "Run as Administrator"

  • Avatar
    mixelixx

    @notfalse - Thanks for the Ubuntu info. Works for Lubuntu.

  • Avatar
    armpit44

    Anyone know how to flush Safari?

  • Avatar
    rotblitz

    You flush the website cache from the tools icon.

  • Avatar
    sonu.javaid

    Hello Helpers,

     

    I need help. I just signed today to OpenDns from London UK. I am not very computer intelligent, well I guess I classify myself as a bimbo when it comes to computers and technology. Anyway I followed all instructions provided, now having reached this step I am confused to what happens now. 


    Go to Start Menu > Run > Type "cmd" > press Enter/Return

     What am I do after this stage. I black box appears then what?? Please advice.

    Thank you very much please support. 

  • Avatar
    rotblitz

    "Go to Start Menu > Run > Type "cmd" > press Enter/Return"

    This was wrong.  Copying from above again:

    Start > All Programs > Accessories > Right-click "Command Prompt" > Select "Run as Administrator"

    "What am I do after this stage. I black box appears then what??"

    ipconfig /flushdns                                                (then press Enter)

  • Avatar
    vivispix

    Recently I went onto Youtube and just read some of the notes people leave. As here I read what others had to say and found that, gee, that was me not long ago. Especially about driving a car. Well I'm getting old but never had a speeding ticket. Been taking computer since 1987 but manage to brick most and have to begin again. I hope this resolves my DNS issues as I've just installed a new router. I am grateful you are here and hope your patience holds out till I've got it right. Thanks for being here. Vivi 

Article is closed for comments.