Skip to content

Instantly share code, notes, and snippets.

@0jonjo
Last active July 10, 2022 19:46
Show Gist options
  • Save 0jonjo/5c75d84e9be0e155e7d729b65f99a414 to your computer and use it in GitHub Desktop.
Save 0jonjo/5c75d84e9be0e155e7d729b65f99a414 to your computer and use it in GitHub Desktop.
A simple way to change nameserver and conect to internet in some Cabo Telecom (Brazil) internet router.
#!/bin/bash
cd /etc
echo "nameserver 8.8.8.8" > resolv.conf
echo "nameserver 4.4.4.4" >> resolv.conf
@0jonjo
Copy link
Author

0jonjo commented Jul 10, 2022

To use:
Open terminal and write:

sudo bash change_nameserver.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment