Created
January 21, 2019 17:16
-
-
Save amanjuman/c50d54ef21b81e58023f125457cc2b6d to your computer and use it in GitHub Desktop.
OpenVZ VPS Resolve Config Persistent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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