5.3.3. Setting DNS Search Domains

To set a DNS search domain for the virtual machine MyVM and the container MyCT, run these commands:

# prlctl set MyVM --device-set net0 --searchdomain 192.168.10.10
# prlctl set MyCT --searchdomain 192.168.10.10

Note

Notes:

  1. You can configure the network settings only of virtual machines that have OpenVZ guest tools installed.
  2. Network adapters operating in the routed mode must have at least one static IP address assigned.
  3. To assign network masks to containers operating in the venet0 networking mode, you must set the USE_VENET_MASK parameter in the /etc/vz/vz.conf configuration file to yes.
  4. Containers can have only one network adapter operating in the host-routed mode. This adapter is automatically created when you create a virtual machine.