OpenVZ Forum


Home » General » Support » Re: Can't resolve host address within container [SOLVED]
Re: Can't resolve host address within container [message #42888 is a reply to message #42870] Tue, 14 June 2011 15:43 Go to previous messageGo to previous message
plotinus is currently offline  plotinus
Messages: 11
Registered: June 2011
Junior Member
iptables crashed, but I'm thinking...
I want to virtualize some web sites and to reach the containers (my web sites) thru the internet: I want to see my website using the browser, say writing h_t_t_p://mydomain.com.

Do I need to have internal IP addresses like 192.168.1.x?
Now I create a container with an external IP, not an internal one:
vzctl create 101 (I use a config file)
vzctl set 101 --ipadd 85.43.xx.xx (the IP of mydomain.com)

For the moment, let's forget iptables.
If I create my containers using an external IP, do I have access to the internet? (for the moment it doesn't happen, maybe for the crash of iptables. I think I must reinstall centOS!).

 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic: container can't not access to the Internet
Next Topic: Ploop mount/umount issue
Goto Forum:
  


Current Time: Fri Jun 27 22:21:07 GMT 2025

Total time taken to generate the page: 0.02396 seconds