Dynamic mirroring
Rapid dynamic mirroring using metalinks

For developers

Dynmirror allows you to dynamically link up mirrors for your files using metalinks. Because the metadata is used by the metalink download client, the downloader is protected against faulty mirrors.

Three steps to adding metalinks to your site

  1. Add a link that will generate a metalink

    Next to every download URL we add a metalink download URL. We do this by adding a link to http://www.dynmirror.net/metalink/?url= with the download link in the url argument. For example:

        http://www.dynmirror.net/metalink/?url=http://example.com/directory/example.iso
      
    Click on the url argument to use Javascript to change it. You can also add some optional arguments, which are described at the bottom of the page. The newly created link will instantly work as a metalink, but will not bring much download benefit to your users. To add that, you need to register the metadata of the download and do the same for the mirrors.

    Extra: Using the metalink icon will help your users identify the link type, feel free to use: http://www.dynmirror.net/var/img/metalink_16x16.png

  2. Host your metadata

    Host MD5, SHA-1, SHA-256 or SHA-512 hash information if you have not done that already, for example:

        md5sum * > MD5SUMS    
      
    Now host the MD5SUMS file next to your file. This will tell any downloader what you think the digest of the download should be.
  3. Post your metdata

    The last step is telling dynmirror about the files you host by pointing it to the metadata created in the previous step. Using the metadata, dynmirror can find other servers hosting the same data. You can do this using the online form or use any other http client, like curl:

        curl 'http://www.dynmirror.net/add/?url=http://example.com/directory/MD5SUMS'
      

    Repeat that for all your mirrors, and users of the link we created in the first step will automatically start using those mirrors. Because it's a metalink, their client will check the MD5 after download so the download is still secure.

For download client developers

Download clients are free to use our service to seek extra mirrors for their links. Simply use the link in step 1 to get more mirrors if you only know the URL. If you know the MD5, SHA-1, SHA-256 or SHA-512 of the file, use: http://www.dynmirror.net/metalink/LOWERCASE HEX DIGEST.metalink

Optional arguments

There are some optional arguments you can add to your dynmirror.net url, these are:

coral
Add a link for the Coral CDN proxy service. This only works for files up to 50 MB in size, and is only allowed on URL based metalink request (not the http://www.dynmirror.net/hex_digest.metalink links).
Example: http://www.dynmirror.net/metalink/?url=http://example.org/file&coral

Our development

We are always trying to make this site better. We are happy to share with you what we are working on.

Powered by Metalink Powered by Google App Engine