Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.