OpenVZ Forum


Home » General » Support » DNS Problem (DNS Problem on VM )
DNS Problem [message #51424] Tue, 27 May 2014 08:36 Go to previous message
markjcc is currently offline  markjcc
Messages: 1
Registered: May 2014
Junior Member
Every new VM I make on SolusVM with OpenVZ, once it boot's the nameserver's don't work and yum won't work so does ping

I have to run this script each and every time I make a new VPS
See below for script

The /etc/resolv.conf on the Slave is.
nameserver 8.8.8.8
nameserver 8.8.4.4

What's the matter or resolution here.


This is the script I have to run everytime
#!/bin/sh

VPS="$(cd /vz/private/ && echo *)"
for VPS in $VPS; do
vzctl set $VPS --nameserver 8.8.8.8 --nameserver 8.8.4.4 --save
done;

Also /etc/resolv.conf on the VM is empty.
 
Read Message
Read Message
Previous Topic: vzctl created a bunch of snapshots by itself
Next Topic: venet0 and ipv6 (fully specified issue)
Goto Forum:
  


Current Time: Tue Nov 19 08:34:23 GMT 2024

Total time taken to generate the page: 0.02989 seconds