Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default Apache DNS lookup

    I can't figure out how to configure my apache so that it doesn't perform DNS lookups. /usr/local/apache/conf/httpd.conf shows that
    Code:
    HostnameLookups Off
    but in both the domlogs and the apache status (within WHM) it seems to be resolving these ips. Yesterday my isp's caching dns servers became slow and it slowed my site 50x. I want to disable all reverse lookups so my site's speed won't be dependent on any dns issues.

  2. #2
    Member
    Join Date
    Oct 2006
    Posts
    312

    Default

    I assumed you wanted the ISP not to cache the pages, ya?

    If so, look for CACHENEGOTIATEDDOCS and make sure you add a # in front of it, you should be able to find it under httpd.conf
    .
    RTG (Asia) Network
    Unmetered ®cPanel VPS from $28.00
    Shared & Reseller Accounts from $2.00
    Unmetered Dedicated Servers from $58.00
    Your account will be setup AUTOMAGICALLY upon payment.

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    Quote Originally Posted by brendanrtg View Post
    I assumed you wanted the ISP not to cache the pages, ya?

    If so, look for CACHENEGOTIATEDDOCS and make sure you add a # in front of it, you should be able to find it under httpd.conf
    I simply don't want apache doing reverse lookups. Maybe that is more clear?

  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    also by ISP I mean dedicated server host.

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    Quote Originally Posted by brendanrtg View Post
    I assumed you wanted the ISP not to cache the pages, ya?

    If so, look for CACHENEGOTIATEDDOCS and make sure you add a # in front of it, you should be able to find it under httpd.conf
    That option was also already commented out

  6. #6
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default



    this is what i'm talking about

    i think it should be showing ips only. showing rdns means that somewhere an rds is being performed which I want to eliminate

  7. #7
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    does no one else have this problem? This is a huge issue for me.

  8. #8
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Do you have any .HTACCESS files setup in the account?

    If you use any access control commands by hostname in a .HTACCESS file
    then the connections for that account will automatically start performing
    hostname lookups

    In example:
    Code:
    <Files *>
      Deny from aol.com
    </Files>
    If I put that in the .HTACCESS on any account, my server would begin
    performing hostname lookups of all connections because I told it
    to block connections coming from "aol.com" instead of a numeric IP.

  9. #9
    Member
    Join Date
    Jan 2007
    Posts
    18

    Default

    Quote Originally Posted by Spiral View Post
    Do you have any .HTACCESS files setup in the account?

    If you use any access control commands by hostname in a .HTACCESS file
    then the connections for that account will automatically start performing
    hostname lookups

    In example:
    Code:
    <Files *>
      Deny from aol.com
    </Files>
    If I put that in the .HTACCESS on any account, my server would begin
    performing hostname lookups of all connections because I told it
    to block connections coming from "aol.com" instead of a numeric IP.
    oddly enough I thought I was doing this right.

    Code:
    order allow,deny
    deny from 38.98.120.74,72.21.39.242	
    allow from all
    I removed that and now it works fine. Did you ever find a proper way to block just ips? That 38. ip is this annoying ass scraper website, that hits my site more than google http://shopwiki.com/ is what is hosted there. Anyway I extend much gratitude to you for helping me fix this.

Similar Threads & Tags
Similar threads

  1. DNS Lookup problems
    By nsusa in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-24-2008, 05:06 PM
  2. Website DNS lookup, need to get around
    By s650127 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-05-2007, 12:09 PM
  3. Overriding DNS Lookup
    By NewbGuy in forum New User Questions
    Replies: 1
    Last Post: 11-02-2006, 09:10 PM
  4. DNS Lookup
    By silvernetuk in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-14-2004, 06:53 AM
  5. Reverse lookup and DNS ?'s
    By Networkologist in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-24-2003, 12:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube