Skip to content

Instantly share code, notes, and snippets.

@madx
Created January 11, 2013 14:23
Show Gist options
  • Save madx/4510995 to your computer and use it in GitHub Desktop.
Save madx/4510995 to your computer and use it in GitHub Desktop.
#!/bin/bash
DNS="$(cat /etc/resolv.conf)"
cp -f /etc/resolv.conf.head /etc/resolv.conf
echo "$DNS" >> /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment