Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not very popular with hosting, but I have a special situation:

I live in Tunisia, I can buy a domain name with .tn extention, but the problem is that:

  1. The domain could not be pointed to a server outside Tunisia
  2. All servers in Tunisia are bad, no one provides really reliable hosting

so, I want to use the .tn domain with a basic hosting in Tunisia, and Make other db queries and rich media on another remote server outside Tunisia.

How to do it? Is there better alternatives?

All suggestions are welcome :)

Thank you.

share|improve this question
You best better is to first register a company in .tn. – William Sep 2 '15 at 1:48

This domain registrar suggests that if you register a .tn domain (let's say "") then you are allowed to set up a server in Tunisia that does nothing but redirects people somewhere else (let's say ""). If you do this, will be almost unused since Google and other search engines will pick up the redirect and just link everyone to However, if your host is unreachable, at least everyone who knew about the .com server can still get to it, which should be just about everyone thanks to Google.

Alternatively you could use a reverse proxy in Tunisia which would appear to be hosting, but in reality it is actually sending the requests to another server elsewhere, getting the response from the other server, then forwarding the response back to the client. This could mean doubling your bandwidth usage depending on whether you have the reverse proxy caching pages or not. It would also increase page load times. If your internet connection is good but servers are bad, this may be your best choice. However, if the reverse proxy goes down, nobody would know how to get to your site at all since you were hiding the "real" server.

Personally, if hosting in Tunisia is as bad as you say, then as long as .tn requires local hosting I wouldn't bother with registering a .tn domain. Unless I could get

share|improve this answer

There are a number of ways to do what you want. Most of them will be frustrating.

As for db queries, well, just do it. If the db is accepting remote connections, then use it. As far as the nebulous term "Rich Media" you'll need to be more specific. I suspect you are talking about showing flash assets on your site. In which case, if you don't know how to do that, you need to hire someone that does.

share|improve this answer

You could use a proxy server hosted in Tunisia to pass the request to other servers outside Tunisia.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.