Skip to content

Instantly share code, notes, and snippets.

@thogg4
Last active October 8, 2015 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thogg4/81de781d4a21382d1c11 to your computer and use it in GitHub Desktop.
Save thogg4/81de781d4a21382d1c11 to your computer and use it in GitHub Desktop.
bootsync.sh
#!/bin/sh
grep '\-\-dns' /var/lib/boot2docker/profile || {
echo 'EXTRA_ARGS="$EXTRA_ARGS --dns 192.168.99.100 --dns 8.8.8.8 --dns 8.8.4.4"' | sudo tee -a /var/lib/boot2docker/profile
}
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee /etc/resolv.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment