Skip to content

Instantly share code, notes, and snippets.

@dgoguerra
Last active February 21, 2016 18:05
Show Gist options
  • Save dgoguerra/2723fe53ddeba25e0fc2 to your computer and use it in GitHub Desktop.
Save dgoguerra/2723fe53ddeba25e0fc2 to your computer and use it in GitHub Desktop.
Configure a custom DNS on Ubuntu 12.04

Add the folllowing lines on /etc/network/interfaces for the appropriate interface (e.g. wlan0).

auto wlan0
dns-nameservers X.X.X.X Y.Y.Y.Y

And run:

sudo restart network-manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment