|
|
lookupd
Tiger uses lookupd to cache lookups. That means if you hit the ad before editing /etc/hosts and haven't logged out or restarted, chances are the ip is cached. This can be solved by running:
I make a habit of doing so after each edit of the hosts file, that way I remember, and since I edit the hosts file regularly I created a script called vihosts (named after visudo). I put it in ~/bin, which is in my $PATH. It's very simple:
You can replace vi with nano or whatever your favorite editor is. Just make sure it's in your path and executable and you can type vihosts to edit your hosts file now.
Good idea!
Though I like to use the $EDITOR environment variable and full paths to make my scripts a little more robust, like so:
---
Whoops...
Don't forget the
at the top of the script...---
Good idea!
Looking back on this, it could be simplified further:
--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|