Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 would like to do a mapping between subdomains and my VMs local IP addresses.
Something that looks like this schema

I've set up my DNS directly on my server ( for the example) and I thought that configuring my zones to something like this would have been enough but it isn't:

vm0 IN A
vm1 IN A
vm2 IN A

Of course it doesn't work, because my DNS resolves by which is only available on my dedicated server local network.

So, my question is:
How can I make this binding work throughout the Internet

Important NB:
I don't want :80 traffic only. I want to have access to the entire VM networks. So nginx reverse proxy stuffs aren't what I need or it might be enough but I didn't find how ?

By the way, I have some IPv6 addresses available but I don't want to use them, it has to be possible to do this with the old v4 protocol but I'm not good enough to make it work properly.

Thanks :)

share|improve this question
The more I try to find a solution to this, the more I think there is just none. – Leiko Dec 30 '13 at 16:21
@MadHatter Ok thanks. So, IPv6 it is! – Leiko Dec 30 '13 at 16:22
The answer can be helpful for others (like me) who spent hours trying to find a solution :p – Leiko Dec 30 '13 at 16:24
It's not possible. You really need to use IPv6 for this. (And many other reasons...) – Michael Hampton Jan 2 '14 at 18:12
up vote 2 down vote accepted

You can't. Private addresses are just that: private. If you want full routed access to all your VMs from anywhere on the internet, you need more real IP addresses, and if you want it via ipv4, you need more ipv4 addresses. Talk to your provider.

share|improve this answer

As mentioned by MadHatter, you cannot do this with private IP addresses. Assuming this is from a home connection, your ISP would need to allocate public IP addresses to you using framed routing, and you would require the appropriate hardware on your end to manage this. Doing this also opens up a lot of security issues, so that is another thing to consider.

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.