Skip to content

Instantly share code, notes, and snippets.

@amanjuman
Created January 21, 2019 17:16
Show Gist options
  • Save amanjuman/c50d54ef21b81e58023f125457cc2b6d to your computer and use it in GitHub Desktop.
Save amanjuman/c50d54ef21b81e58023f125457cc2b6d to your computer and use it in GitHub Desktop.
OpenVZ VPS Resolve Config Persistent
sudo apt-get install e2fsprogs -y
;Unlock auto reset on boot
sudo chattr -i /etc/resolv.conf
;Lock on auto reset on boot
sudo chattr +i /etc/resolv.conf
;OR create script
nano /etc/rc.local
echo "1.1.1.1" > /etc/resolv.conf
echo "1.0.0.1" >> /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment