Set DNS server on LXDE (Ubuntu)

lxdeI prefer the Google DNS servers (8.8.8.8/8.8.4.4) for faster DNS resolution. While the procedure to set it on Unity is trivial, setting it on LXDE needs little more effort.

  1. Edit /etc/NetworkManager/NetworkManager.conf and comment out the line starting with dns.
    dns=dnsmasq
    to
    #dns=dnsmasq
  2. Edit /etc/resolv.conf and add the preferred nameservers before any other entries.
    #Google
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    #OpenDNS
    nameserver 208.67.222.222
    nameserver 208.67.220.220
  3. Reboot and ensure the settings took effect.
    $ nslookup www.google.com
    Server: 8.8.8.8
    Address: 8.8.8.8#53
    ...

This procedure is tested on Ubuntu 14.04 (aka Trusty Tahr).

One thought on “Set DNS server on LXDE (Ubuntu)”

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s