Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just configured dns-nameservers in /etc/network/interfaces.

To make it take effect instantly, I typed sudo service networking stop, the desktop seems to kill some processes, anyway the UI is down...

Then I switch to Ctrl+Alt+F1 and type sudo service networking start. It prompts that networking stop/waiting. I've tried several times and can't figure out what's the reason. Can anyone help me with this?

Thank you!

share|improve this question
up vote 0 down vote accepted

The commands to start, stop and restart network manager are

sudo service network-manager stop

sudo service network-manager start

sudo service network-manager restart

You set the dns-nameservers in network manager and not /etc/network/interfaces unless you are not using network manger because network manger will overwrite what is in /etc/network/interfaces.

share|improve this answer
yes,that's it.thanks – AmareKnight Aug 24 '13 at 12:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.