Configure dns settings in /etc/network/interfaces

In newer Ubuntu versions, resolv.conf can not be edited, since the network manager will automatically chnage the file. If you want to configure your dns settings by hand, you have to add them directly into the interfaces file. This is the cleaner approach, since all settings are in one place, but a hint in resolv.conf would have been niceā€¦

In /etc/network/interfaces, add a the following lines to the end of the stanza for a particular interface:

# The primary network interface
auto eth0  
  iface eth0 inet static   


Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.