6

Possible Duplicate:
How To Auto Add To /etc/resolv.conf?

I wrote interfaces entries manually because of weird behaviour from network manager/indicator:

$ cat /etc/network/interfaces
auto lo
auto eth0

iface lo inet loopback

iface eth0 inet static
  address 192.168.1.2
  netmask 255.255.255.0
  gateway 192.168.1.1

Also, I manually edited /etc/resolv.conf and added some DNS servers there, but on every boot it replace my edits with:

$ cat /etc/resolv.conf
# Generated by Connection Manager
nameserver 127.0.0.1

I would like to preserve my DNS host modifications to /etc/resolv.conf. How can I do this?

zzz
  • 63
  • 1
    I doubt you want to prevent that. You need to provide more details to allow us to help you with your dns setup: What are you trying to achieve that the standard setup does not do for you? – DrSAR Mar 31 '11 at 17:48
  • I wrote interfaces entry manually because of wierd behaviour from network manager: zz@zz-desktop:~$ cat /etc/network/interfaces auto lo auto eth0

    iface lo inet loopback

    iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1 also, i manually edit /etc/resolv.conf and add some dns server there, but on every boot it replace my edits with zz@zz-desktop:~$ cat /etc/resolv.conf

    Generated by Connection Manager

    nameserver 127.0.0.1

    – zzz Mar 31 '11 at 18:09
  • also see http://askubuntu.com/questions/2321/what-is-the-proper-way-to-change-the-dns-ip and http://askubuntu.com/questions/29286/how-to-auto-add-to-etc-resolv-conf – belacqua Mar 31 '11 at 23:00
  • one more: http://askubuntu.com/questions/2321/what-is-the-proper-way-to-change-the-dns-ip – belacqua Mar 31 '11 at 23:08

0 Answers0