one9eight2.com

A reasoned commentary on life, politics, science, technology, and the news of the moment.

Navigation

  • Recent posts
Home
    • About
    • Subscribe
    • XML Feed

Links of Interest

Justin on the Web
  • del.icio.us
  • Digg
  • Facebook
  • LinkedIn
  • MySpace
  • Technorati
  • Twitter

Favorite Sites
  • 43 Folders
  • Ars Technica
  • Dance Department
  • Digg.com
  • Dave Matthias
  • Feast of Fools
  • Google Reader
  • Lifehacker.com
  • Powermix
  • Tasithoughts's Weblog
  • TWiki
  • TWiT

slow internet on OS X (w/Safari or Firefox)

Submitted by justevolvin on Fri, 01/26/2007 - 23:22
  • Charter
  • DNS
  • DNS caching
  • DNS server
  • firefox
  • internet
  • Mac
  • page load
  • rndc
  • safari
  • slow
  • timeout
  • vi

Here is some great information that others might benefit from. My boss has requested this information and I just finished sending it to my officemate’s son, so I figured that it wouldn’t hurt to post something useful on here. Before you read on, know that this fix also works with Windows too. It’s really a two part fix. First we are going to enable the DNS caching on OS X and then we will redirect DNS requests from your local DNS servers to the big kahunas (or whichever you choose). In Windows, the DNS caching comes already enabled, so all you need to do is change the DNS servers to something different than those provided by your ISP (which in my case with Charter are horrribly slow). Hope this helps! Please post a comment or suggestion if this is helpful or if I could provide better instructions…

This procedure is absolutely harmless and undoable if it doesn’t work for you. The reason I went searching for this is because I had problems in Safari and Firefox with really lengthy page loads and very frequent timeouts. It was such a headache; the fix has made all the difference in the world! Part of the problem is that OS X Tiger does not come configured with DNS caching (like Windows does). Turning this feature on will make it so that Safari or Firefox (or whatever browser you use) won’t have to “look up” the DNS information every time you try to visit a web page. The second part of at least my problem was that the Charter DNS servers are horribly slow at times. I have even configured all of my Windows machines to use the big kahuna DNS servers instead of Charter’s dinky ones…

Here’s what you need to do:

  • Open a terminal window as an administrator (you’re going to need sudo privileges)
  • Type in this command (w/o quotes): “rndc-confgen > /etc/rndc.conf “
  • Now type this command (w/o quotes): “head -n 6 /etc/rndc.conf > /etc/rndc.key“
  • Next type in this command (w/o quotes): “ sudo vi named.conf“
  • When prompted, enter the password for the user that you are logged in as
  • This will open up VI
  • Use the J and K keys to navigate down and up, respectively
  • Navigate to the section that looks like this:

forwarders {
x.x.x.x;
x.x.x.x;
};

  • Again, using the J and K keys to navigate down and up and the H and L keys to navigate left and right, respectively, get your cursor close to the “x.x.x.x”. Press the letter I key to insert text.
  • Put these DNS servers in (or DNS servers of your choice; sometimes the DNS servers of a nearby university or major hub will do just fine, you can use a DNS lookup service to figure out what the server addresses are):
    • 4.2.2.2
    • 4.2.2.3
  • When you are done, it should look like this:

forwarders {
4.2.2.2;
4.2.2.3;

};

  • It is very important that you use the semi-colons. When I first did this, I left off the semi-colon after the } at the end and it didn’t work. It took me a little while to find out what I did wrong.
  • Once everything looks OK, press your ESC key.
  • Now press the colon key (Shift + :)
  • Type the letter w the letter q and an exclamation !
    • It should look like this :wq!
    • Press enter and terminal should confirm that named.conf was written and you should be back at the terminal prompt
  • You are done in terminal, all that is left is to reconfigure your network settings (type in Exit or use Command + Q)
  • From the system preferences, choose Network
  • Under the TCP/IP button, there is a section that says DNS servers
  • Put 127.0.0.1 in as your DNS server (this points all domain name requests to those servers that you put in the named.conf file if it can’t find a recent cached address on your local machine)
  • Save your changes and that’s it!

Post new comment

The content of this field is kept private and will not be shown publicly.
Input format
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

Popular content

Today's:

  • Rap blamed for Asheville gang violence
  • The FISA Controversy
  • Las Vegas - 2nd Post
  • Yellow Jacket Nest
  • Christian Nation

All time:

  • Las Vegas - 2nd Post
  • TiVo Resurrection
  • Week of 10/21 - Wrap-Up
  • Week of 10/28 - Wrap-Up
  • Christian Nation

Last viewed:

  • If you hate, you got to pay!
  • Health Adventure: Momentum
  • Holographics
  • The Queen is Back!
  • Christian Nation

Archives

  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007

Recent comments

  • Believing in Obama
    4 weeks 3 days ago
  • Words well spoken
    5 weeks 4 days ago
  • Stings don't have to be a problem!
    7 weeks 4 days ago
  • Still don't think it is a big deal...
    7 weeks 4 days ago
  • Without wanting to go into
    8 weeks 3 hours ago
  • Wow! The new firefox is
    9 weeks 2 days ago
  • Appreciate the Crayons review
    13 weeks 5 days ago
  • Thank you for your blog.
    21 weeks 1 day ago
  • thanks!
    24 weeks 4 days ago
  • I LOVE these pictures, they
    29 weeks 5 days ago
RoopleTheme