echo 8.8.8.8 > /etc/resolv.conf
- yes, I wanted to write to /etc/resolv.conf
- yes, I wanted to write "nameserver 8.8.8.8"
- overwriting the file was intentional as otherwise the old nameserver would still be first.
echo "nameserver 8.8.8.8" > /etc/resolv.conf