1
sudo perl -pi -e 'if ( not s/^nameserver/#nameserver/) { s/^#nameserver/nameserver/;}' /etc/resolv.conf