DNS Correction for the Staging Server

From Open Source Ecology
Revision as of 16:26, 24 December 2019 by Maltfield (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Safer alternative

This is a safer alternative for accessing the staging server, if you only need that access in a browser.

sudo apt-get install firejail
firejail --dns=10.241.189.1 firefox

Run After Connecting

sudo cp /etc/resolv.conf /etc/resolv.conf.bak

echo "nameserver 10.241.189.1" | sudo tee /etc/resolv.conf

Run After Disconnecting

sudo rm /etc/resolv.conf

sudo mv /etc/resolv.conf.bak /etc/resolv.conf

See Also