DJB said:Just create a sub-domain the server will do the rest.
DJB said:I think you will require some geoip script for that task, have a look on Google search and see what you can come up with.
ogah said:maybe he want dinamic url like subdomain download link 4shared
ogah said:beside wildcard zone record, you also need to configure with htaccess like rewrite wildcard subdomain as wildcard folder or query
ogah said:like rewrite http://yourdomain/dcxxx/blablabla or http://yourdomain/?cdn=dcxx&file=blablabla redirected to http://dcxxx.yourdomain/blablabla