Next: Usage Up: Setting up auto-updating Previous: Setting up auto-updating Contents

### Closest mirrors

The `DatabaseMirror` directive in the config file specifies the database server `freshclam` will attempt (up to `MaxAttempts` times) to download the database from. The default database mirror is `database.clamav.net` but multiple directives are allowed. In order to download the database from the closest mirror you should configure `freshclam` to use `db.xx.clamav.net` where xx represents your country code. For example, if your server is in "Ascension Island" you should have the following lines included in `freshclam.conf`:

    	DNSDatabaseInfo current.cvd.clamav.net
    	DatabaseMirror db.ac.clamav.net
    	DatabaseMirror database.clamav.net

The second entry acts as a fallback in case the connection to the first mirror fails for some reason. The full list of two-letters country codes is available at `http://www.iana.org/cctld/cctld-whois.htm`