2 added 60 characters in body
source | link

on root:
1) comment dns=dnsmasq on /etc/NetworkManager/NetworkManager.conf
2) add "supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;" at

  1. comment dns=dnsmasq on /etc/NetworkManager/NetworkManager.conf
  2. add supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2; at the end of /etc/dhcp/dhclient.conf
  3. sudo service network-manager restart

The following makes the end of /etc/dhcp/dhclient.conf
3) sudo service network-manager restart

sudo sed -i 's/dns\x3Ddnsmasq/\x23dns\x3Ddnsmasq/' /etc/NetworkManager/NetworkManager.conf echo 'supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;' | sudo tee --append /etc/dhcp/dhclient.conf sudo service network-manager restart changes shown above:

$ sudo sed -i 's/dns\x3Ddnsmasq/\x23dns\x3Ddnsmasq/' \
   /etc/NetworkManager/NetworkManager.conf

$ echo 'supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;' | \
   sudo tee --append /etc/dhcp/dhclient.conf

$ sudo service network-manager restart

Wait 7/10 seconds to finish the restart process, check your config with "nslookup nist.gov"

 . Works well on Ubuntu LTS 14.04.

on root:
1) comment dns=dnsmasq on /etc/NetworkManager/NetworkManager.conf
2) add "supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;" at the end of /etc/dhcp/dhclient.conf
3) sudo service network-manager restart

sudo sed -i 's/dns\x3Ddnsmasq/\x23dns\x3Ddnsmasq/' /etc/NetworkManager/NetworkManager.conf echo 'supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;' | sudo tee --append /etc/dhcp/dhclient.conf sudo service network-manager restart

Wait 7/10 seconds to finish the restart process, check your config with "nslookup nist.gov"

  Works well on Ubuntu LTS 14.04

on root:

  1. comment dns=dnsmasq on /etc/NetworkManager/NetworkManager.conf
  2. add supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2; at the end of /etc/dhcp/dhclient.conf
  3. sudo service network-manager restart

The following makes the changes shown above:

$ sudo sed -i 's/dns\x3Ddnsmasq/\x23dns\x3Ddnsmasq/' \
   /etc/NetworkManager/NetworkManager.conf

$ echo 'supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;' | \
   sudo tee --append /etc/dhcp/dhclient.conf

$ sudo service network-manager restart

Wait 7/10 seconds to finish the restart process, check your config with "nslookup nist.gov". Works well on Ubuntu LTS 14.04.

1
source | link

on root:
1) comment dns=dnsmasq on /etc/NetworkManager/NetworkManager.conf
2) add "supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;" at the end of /etc/dhcp/dhclient.conf
3) sudo service network-manager restart

sudo sed -i 's/dns\x3Ddnsmasq/\x23dns\x3Ddnsmasq/' /etc/NetworkManager/NetworkManager.conf echo 'supersede domain-name-servers 4.2.2.1,4.2.2.3,4.2.2.5,4.2.2.4,4.2.2.1,4.2.2.2;' | sudo tee --append /etc/dhcp/dhclient.conf sudo service network-manager restart

Wait 7/10 seconds to finish the restart process, check your config with "nslookup nist.gov"

Works well on Ubuntu LTS 14.04