0

On Ubuntu 32 bits I decalred my DNS in /etc/resolv.conf Now that I installed Ubuntu 64 bits I do not find this file.

I edited /etc/network/interfaces and /etc/hosts but there is no /etc/resolv.conf.

So I went to the network manager and I set everything graphically there. But when I run:sudo service network - interface restart INTERFACE = eth0 I still can not ping www.google.fr

Where can I find the equivalent file for resolv.conf in order to declare my DNS ? What can I do to connect ? Must I deleted my files editions since I did the settings graphically using the Network Manager ?

  • You set your DNS in the graphical tool, network manager. – Panther Apr 22 '14 at 16:18
  • @bodhi.zazen: no, it is not a duplicated question. Your link shows resolv.conf and that is my problem as I mentioned through my question: I do not find it. –  Apr 22 '14 at 16:22
  • Read the answer closer, it does not suggest you edit resolv.conf . – Panther Apr 22 '14 at 16:25
  • Here is a picture of how to set your DNS with network manager - http://i.stack.imgur.com/Cumpo.png – Panther Apr 22 '14 at 16:26
  • @bodhi.zazen: Thank you, but how can I access to it ? –  Apr 22 '14 at 16:28
  • @bodhi.zazen: sorry for asking, I found it. Thank you –  Apr 22 '14 at 16:29
  • It is not a problem asking for help. The way askubuntu works is that duplicate questions will be closed to reduce duplication of effort. You did not do anything wrong and we all get frustrated when we are having problems. – Panther Apr 22 '14 at 16:31
  • @bodhi.zazen: when I add the address of my DNS, the ésave" button is inactive, so I can not save my DNS. –  Apr 22 '14 at 16:35
  • What version of Ubuntu? Sounds like a bug, you may have to file a bug report and follow the first link I gave you as a work around. – Panther Apr 22 '14 at 16:36
  • I edited the settings on the wrong area. Now I saved my DNS. However when i restart network-interface, I still am not able to connect. I will edit my question –  Apr 22 '14 at 16:39
  • restart network-manager: sudo service network-manager restart – Dan Apr 22 '14 at 16:46
  • I run sudo service network-manager restart but still can not ping 8.8.8.8 –  Apr 22 '14 at 16:50

1 Answers1

0

If the initial link I gave you did not work,

sudo gedit /etc/resolvconf/resolv.conf.d/head  

Add your nameserver(s) , for example

nameserver 8.8.8.8

nameserver 8.8.4.4

save your changes and close gedit

Then run

sudo resolvconf -u 
Panther
  • 102,067
  • Thank you a lot !!!!!! It works ! You are the God of Linux ! Regards –  Apr 22 '14 at 16:54