HT202516: Reset the DNS cache in OS X

Learn about Reset the DNS cache in OS X
GlaciemBoy

Q: When i put the code in terminal it says I have to put a password, and it doesn't allow me to type the password

When i put the code in terminal it says I have to put a password, and it doesn't allow me to type the password. pleade help.

iMac, iOS 8.1

Posted on May 5, 2015 12:57 PM

Close

Q: When i put the code in terminal it says I have to put a password, and it doesn't allow me to type the password

  • All replies
  • Helpful answers

  • by GlaciemBoy,

    GlaciemBoy GlaciemBoy May 5, 2015 12:59 PM in response to GlaciemBoy
    Level 1 (4 points)
    Notebooks
    May 5, 2015 12:59 PM in response to GlaciemBoy

    By the way I am talking about flushing DNS on OSX Yosemite.

  • by Niel,

    Niel Niel May 5, 2015 12:59 PM in response to GlaciemBoy
    Level 10 (312,065 points)
    May 5, 2015 12:59 PM in response to GlaciemBoy

    It’s allowing you to type the password; it just doesn’t show anything when you do. Press Enter when you’ve finished.

     

    (127105)

  • by mek!,

    mek! mek! Jul 9, 2015 9:40 AM in response to GlaciemBoy
    Level 1 (15 points)
    Jul 9, 2015 9:40 AM in response to GlaciemBoy

    The command which you have to enter is two parts, sudo and then the command followed by it which will be granted root (main admin) acess.

    sudo caches the password for a default of 5minutes. So if you have entered the password recently before it will not ask you again.

     

    You did not specify which OS you have / which command you executed so there is not that much more to say.

     

    Some commands if executed just do not return any feedback.

    Like the killall, but you might be able to add verbosity, like with -v

     

    sudo killall -v -HUP mDNSResponder

    which results here in the returned text:

    kill -HUP 94

    as the process id is 94.

    If you want to see more you can also look into /var/log/system.log

     

    system.log:Jul  9 18:35:33 mac.local mDNSResponder[94]: SIGHUP: Purge cache

     

    though all that might be dependent on the os version you run and the command you execute, ...