Skip to content

Instantly share code, notes, and snippets.


girvan/shell Secret

Created Aug 3, 2015
What would you like to do?
setup google nameserver with dhcp network settings in linux
if grep -q /etc/dhcp/dhclient.conf; then
echo 'nameserver found'
echo 'interface "eth0" { prepend domain-name-servers,; }' \
| sudo tee -a /etc/dhcp/dhclient.conf
sudo dhclient -v -r eth0 && sudo dhclient -v eth0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment