DNS Problem [message #51424] |
Tue, 27 May 2014 08:36 |
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.
|
|
|