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 (myserver.com 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 192.168.0.1
vm1 IN A 192.168.0.42
vm2 IN A 192.168.0.2
Of course it doesn't work, because my DNS resolves
192.168.0.1 which is only available on my dedicated server local network.
So, my question is:
How can I make this binding work throughout the Internet
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.