Skip to content

Instantly share code, notes, and snippets.

@ikks
Created April 5, 2016 15:49
Show Gist options
  • Save ikks/539021812ea73c1f6d57fd05816883cf to your computer and use it in GitHub Desktop.
Save ikks/539021812ea73c1f6d57fd05816883cf to your computer and use it in GitHub Desktop.
#!/bin/bash
if ! grep 205 /etc/resolv.conf; then
sed -i '1s;^;nameserver 192.168.1.205\n;' /etc/resolv.conf
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment