1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Disable reverse dns lookup

Discussion in 'Plesk for Windows - 8.x and Older' started by resellertr, Jan 2, 2006.

  1. resellertr

    resellertr Regular Pleskian

    25
    57%
    Joined:
    Jul 14, 2004
    Messages:
    133
    Likes Received:
    0
    Hi,

    Is it possible to disable reverse dns lookup for awstats?
     
  2. vekna

    vekna Guest

    0
     
    Please precise, what do you mean?
     
  3. it-biz

    it-biz Guest

    0
     
  4. resellertr

    resellertr Regular Pleskian

    25
    57%
    Joined:
    Jul 14, 2004
    Messages:
    133
    Likes Received:
    0
    I tried to edit awstat config files but every time statistics.exe runs, it turns on again.
     
  5. it-biz

    it-biz Guest

    0
     
    did you edit the conf for the domain and the model one?
     
  6. resellertr

    resellertr Regular Pleskian

    25
    57%
    Joined:
    Jul 14, 2004
    Messages:
    133
    Likes Received:
    0
    Yes I tried to edit both of them. Can any one able to disable reverse dns on awstats
     
  7. shall

    shall Regular Pleskian

    26
    57%
    Joined:
    Apr 2, 2007
    Messages:
    226
    Likes Received:
    0
    Code:
    #!/bin/bash
    ## 
    #  This just changes DNSLookup=2 to DNSLookup=0 in the stats files
    ## 
    pushd /usr/local/psa/etc/awstats >/dev/null
    echo Statistics fix initiated
    for eaFile in `ls .`
    do
    	sed -i -e "s;DNSLookup=2;DNSLookup=0;" /usr/local/psa/etc/awstats/$eaFile
    done
    echo Completed statistics fix.
    popd >/dev/null
    
     
Loading...