Android Century
  • Home
  • Android Zone
    • Android Apps
    • Android Games
    • Apps APk Files
    • Games Apk Files
    • Apps Hack Tricks
  • Reviews
  • Fantasy Zone
    • Entertainment
    • Quotes and Status
    • Life Style
    • Home Made Tips
    • Hair Care
    • Skin Care
    • Fantasy Tips
  • Tricks
    • Free Recharge
    • Free Internet
    • shopping Cashback
    • Recharge Cashback
  • Tech
  • Mobiles
  • Gadgets
  • News
  • How To's
  • Software
Breaking
Loading...

Featured post

How to Take Great Photos With Apple's iPhone X

Recent Posts

Labels

  • Android Apk Files
  • Android Apps
  • Android Games
  • Apps Apk Files
  • Entertainment
  • Fantasy Tips
  • Gadgets
  • Hair Care
  • HomeMade Tips
  • How To's
  • News
  • Quotes
  • Quotes & Status
  • Recharge Cashback
  • Recharge Promo Codes
  • Shopping Cashback
  • Technology
  • skin care
Home / How To's / How to Reset the DNS Cache on macOS

How to Reset the DNS Cache on macOS

Unknown 02:37:00 How To's Edit
If you work on websites, you’ll occasionally need to reset your computer’s DNS cache, particularly after editing records or changing hosts. While flushing the DNS cache on Windows is easy with a dedicated command, Mac users have to use a bit of a workaround.

Clear Your DNS Cache on Your Mac

To clear your DNS cache on your Mac, open the Terminal, which you can find in Applications > Utilities or by searching with Spotlight, and then run the following command:
sudo killall -HUP mDNSResponder
Enter your password when it’s requested.
So, what does this command actually do? What’s happening here is that you’re kind of tricking your system into flushing the cache. Wikipedia explains:
The SIGHUP signal is sent to a process when its controlling terminal is closed. It was originally designed to notify the process of a serial line drop (a hangup). In modern systems, this signal usually means that the controlling pseudo or virtual terminal has been closed. Many daemons will reload their configuration files and reopen their logfiles instead of exiting when receiving this signal. nohup is a command to make a command ignore the signal.
Obviously you don’t need to know all of the rest of that. But now you do.
There’s a lot of conflicting information on the web about this procedure. Some sites claim you need to run more commands than this on High Sierra, for example, while others make this command unnecessarily long. So far as we can tell, however, the command above is all that’s actually necessary. Here’s how to check your work.

Check if Your DNS Is Actually Reset

Not sure if your DNS reset actually worked? Closing your web browser before flushing the cache can help in some situations, but if that doesn’t seem to be working you can quickly verify that your cache is empty in two ways.
The first is site-specific. At the Terminal, type dig followed by the site’s URL. For example:
dig howtogeek.com
In the “Answer Section” of the results, you’ll see the IP address that your computer knows for the site listed.
If you don’t see the new IP address, consider changing DNS settings on your Mac and flushing the cache again.
For a more global (non site-specific) method, you can also confirm that the cache is reset with the Console, which you can find in Applications > Utilities or by using Spotlight. With your system highlighted in the left panel, type “mDNSResponder” into the search box, hit Enter, type “Cache size” alongside that first query, and then hit Enter again. Like this:
Now, with your Console window still open, head back to your Terminal window and run the following command:
sudo killall -INFO mDNSResponder
You should see the DNS Cache size highlighted in the Console window. Now run this command:
sudo killall -HUP mDNSResponder
And then, run this command once again:
sudo killall -INFO mDNSResponder
You should see the cache size change in the Console window. In the screenshot above, you can see that our cache size changed considerably after issuing the commands.
Share on Facebook Share on Twitter Share on Google Plus

RELATED POSTS


How to Sync Your Contacts Between A...

How to Know a Wi-Fi Network Is Fast...

How to delete your Google search hi...
How to Reset the DNS Cache on macOS How to Reset the DNS Cache on macOS Reviewed by Unknown on 02:37:00 Rating: 5

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

TEST BOOK FOR GOVT ENTRANCE TEST

TEST BOOK FOR GOVT ENTRANCE TEST
Find All Latest book for preparation of SSC,RAILWAYBANK PO,RBI,BANK CLERK,GATE ME,GATE CE are available here in less prices, to check out the books click here

Translate

  • Popular Post
  • Random posts
  • Category

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & Earn Offer:  Hey Guys! Today I make an article about Teen Patti Referral ...
  • Taotronics TT-BH22 Headphones Review
    We make it a addiction to now not look up pricing of a product sooner than reviewing and if ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on Monday strongly condemned North Korea’s latest missile test, adding that the ...
  • Fitbit Zip 2017 review
    Fitbit PROS: Clever, accurate tracking Expandable online service Integration with 3rd ...
  • Bank wallets growing faster than e-wallets
    In the  bank  versus  e-wallets  sweepstakes,  lenders  have now gained lost ground. As of ...

Random Posts

  • US Says It Will Not Recognize South China Sea Exclusion Zone
    US Says It Will Not Recognize South China Sea Exclusion Zone
    31.03.2016 - 0 Comments
    WASHINGTON:  The United States has told China it will not recognize an exclusion zone in the South…
  • Now Apple Park opens in April - new HQ comes complete with sweet Steve Jobs homage
    Now Apple Park opens in April - new HQ comes complete with sweet Steve Jobs homage
    22.02.2017 - 0 Comments
    Apple's futuristic 'Campus' HQ will finally open its doors to employees this April under its new…
  • Take a journey on Positron’s Voyager, a complete-movement chair for VR cinema
    Take a journey on Positron’s Voyager, a complete-movement chair for VR cinema
    13.03.2017 - 0 Comments
    Watching Tom Cruise embark on a risky mission aboard a 0-gravity aircraft sounds terrifying enough, however…
  • Transforming healthcare transport in India
    Transforming healthcare transport in India
    23.03.2017 - 0 Comments
    Around 70% Indians live in remote villages, often outside the catchment area of government hospitals. A…
  • Intex plans Rs 60 crore investment in IoT, technology startups
    Intex plans Rs 60 crore investment in IoT, technology startups
    27.01.2018 - 0 Comments
    NEW DELHI: Intex Technologies is looking to invest around Rs 60 crore this year in technology software…

Labels

Android Apk Files Android Apps Android Games Apps Apk Files Apps Hack Tricks Entertainment Free Internet Freecharge Gadgets Games Apk Files How To's Laptops Guide Mobiles Reviews Technology Viral's android zone free recharge

Entertainment

Tricks

Popular Posts

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • Taotronics TT-BH22 Headphones Review
    We make it a ...
  • Bank wallets growing faster than e-wallets
    In the  bank ...
  • Reliance Jio to offer sharp tariff discounts for customers signing up by March-end
    Reliance Industries' Jio unit will charge a tariff for its services from April, but will offer ...
  • Hands-on with the home windows 10 Creators update for the Xbox One: Beam recreation streaming arrives
    The Windows ...
  • Pentagon strongly condemns North Korea missile test
    The Pentagon on ...
  • Fitbit Zip 2017 review
    Fitbit PROS ...

Random Posts

  • Honor 9 Lite smartphone sale
    Honor 9 Lite smartphone sale
    13.02.2018 - 0 Comments
    Honor 9 Lite smartphone has been in the Indian consumer market in almost a month and has gone on sale for…
  • Things you need to know about market tablets, let’s find it out
    Things you need to know about market tablets, let’s find it out
    10.03.2016 - 0 Comments
    In 2016 the global market of tablet computers is said to be declining again. But detachable tablets are…
  •  VSDC Free Video Editor Download of the day
    VSDC Free Video Editor Download of the day
    09.03.2017 - 0 Comments
    VSDC Free Video Editor Imagine a video editor that enabled you to create projects in Full…
  • How to work from anywhere
    How to work from anywhere
    10.02.2017 - 0 Comments
    Making a break from the world (or the workplace) and hitting the road (or sofa) may be an exciting…
  • Videocon unveils Hybrid AC series running on solar energy, claiming 100% in power savings
    Videocon unveils Hybrid AC series running on solar energy, claiming 100% in power savings
    04.02.2017 - 0 Comments
    Videocon has introduced a new range of Hybrid Solar air conditioners for homes and businesses that will be…

Most Popular

  • Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Offer 2018: Refer and Earn Flipkart Vouchers Free
    Teen Patti Refer & ...
  • SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J7 (2016) REVIEWS
    SAMSUNG GALAXY J ...
  • Top 5 Best SmartPhones under 7000 Rs (March 2017)
    Looking for the ...
  • Apple, IBM, Cisco are huge because of Indians, do not deny them H-1B visa: RBI Governor Urjit Patel
    ...
  • SAMSUNG GALAXY J7 (2016) Specifications
    SAMSUNG GALAXY J ...
  • BlackBerry Teases Marshmallow Beta Testing for Priv by Next Week
    Blackberry ...
  • LG Q6 Review
    LG Q6 Review
    2017 is ...

Contact Form

Name

Email *

Message *

Offers Zone

Created By Android Century Distributed by Android Century
  • Home
  • About us
  • Contact us
  • Privacy policy
  • Terms of use
  • Advertise here
Subscribe Via Email Subscribe To Android Century By Email And Get Free Updates. ;-)


Your email address is safe with us!