Improve Site Performance Increase Site Traffic Monitor Site Uptime Webmaster Resources NetMechanic Home Looking For Help? Partner Programs Privacy Policy Contact Us Press Room
NetMechanic Home LOGIN | HELP | ABOUT US | PRODUCTS | SITE MAP
NetMechanic Menu
Over 52 Million Web Pages Tested!     
 

Search for:


Your Email:

I would like to receive my newsletter in:
HTML format
Text format



Volume 8 (2005)
   September
   June
   April
   March
   January

Volume 7 (2004)
   November
   September
   July
   June
   May
   April
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 6 (2003)
   December
   November (Part 2)
   November
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part 2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 5 (2002)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 4 (2001)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June (Part 2)
   June
   May (Part 2)
   May
   April (Part 2)
   April
   March (Part 2)
   March
   February (Part 2)
   February
   January (Part 2)
   January

Volume 3 (2000)
   December (Part 2)
   December
   November (Part 2)
   November
   October (Part 2)
   October
   September (Part 2)
   September
   August (Part 2)
   August
   July (Part 2)
   July
   June
   May
   April
   March
   February
   January

Volume 2 (1999)
   December
   November
   October
   September
   July
   June
   May
   April
   March
   February
   January

Volume 1 (1998)
   December
   November
   October
   September

 

Server Tip:
Turn Off DNS Lookups

by Tom Dahm,
Chief Operations Officer,
NetMechanic, Inc.

  
November 1998
Vol. 1, No. 3
 • HTML Tip
 • New Tool
 • Server Tip
  

If you run your own Web server, here's an easy tip to boost your server's performance: turn off reverse DNS (Domain Name System) lookups.

Web server performance depends on a number of factors, including your server's operating system, the amount of available RAM, and the number and type of CGI processes running on the machine. As a rule of thumb, however, the more you reduce or defer low priority tasks performed by the server, the better your performance will be. DNS lookups are one such task.

Every time your server receives a request from a client, it will log that request to its access log file. Though the format of this file varies, almost all servers include the IP address from which the request originated. That's critical information for determining where your visitors are located. However, many servers translate this IP address into the fully qualified domain names before writing it to the access log. Thus the IP address 207.158.244.228 becomes "www.netmechanic.com."

While translation of the IP address to a domain name helps you understand your access log, it also adds a performance penalty. Your server executes a DNS lookup by calling the routine gethostbyname() to perform the translation, and it will do this for every request received. Though a single such call isn't expensive, the cumulative effect of these calls makes a noticeable difference in performance.

For the Apache server DNS lookups are controlled by the directive "HostnameLookups." For Apache 1.2 and older versions, this directive was set to "On" by default. Set it to "Off." You will still see your visitor's IP address in your log files (this doesn't incur a performance penalty).

Want to know how much difference this make in your server's performance? Try our Server Check Pro monitoring service. Server Check Pro monitors you Web server 24 hours a day, 7 days per week from multiple, geographically separated locations. With Server Check Pro you can study your server's performance over time, and even make before/after comparisons as you change your server's configuration. Click here to learn more.



Rate This Tip:
Not Useful Useful Very Useful   
 
NetMechanic Tools
HTML Toolbox
Browser Photo
Server Check
Search Engine Starter
Search Engine Tools
GIFBot
Newsletter
HTML Tutorial and Tips
Search Engine Tutorial
Accessibility Information
Browser Problem Tutorial

Company Info
Products
About Us
Contact
Advertise
Link To Us
Jobs
Privacy Policy
Partner Programs
Press Room
RSS Feed
Support
 



Powered by Overture!

 
     
 
   
 
     


Keynote Home
Copyright © 1996-2007,
Keynote NetMechanic
All rights reserved.