This is a total hack, but I add the 'i' attribute: [EMAIL PROTECTED]:~$ sudo -s [EMAIL PROTECTED]:~# lsattr /etc/resolv.conf ------------------ /etc/resolv.conf [EMAIL PROTECTED]:~# chattr +i /etc/resolv.conf [EMAIL PROTECTED]:~# lsattr /etc/resolv.conf ----i------------- /etc/resolv.conf [EMAIL PROTECTED]:~# echo "nameserver 198.60.22.2" >> /etc/resolv.conf bash: /etc/resolv.conf: Permission denied [EMAIL PROTECTED]:~#
I'm interested to hear the correct way to do this... Jason On Dec 20, 2007 12:16 PM, Joseph Hall <[EMAIL PROTECTED]> wrote: > IF you were running Red Hat (and I realize that you're not) then you > could edit the config file for that interface (i.e. > /etc/sysconfig/network-scripts/ifcfg-eth0) and add a line that says > "PEERDNS=no". That would tell the dhcp client not to overwrite the > /etc/resolv.conf file. > > But you're not running Red Hat. You're running Ubuntu, and it uses a > single /etc/network/interfaces file for all of the interfaces. But I'm > 90% certain there's a similar option in Ubuntu. Perhaps the Ubuntu > Utah folk would know? > > -- > Joseph > http://blog.josephhall.com/ > > -- > ubuntu-us-ut mailing list > [EMAIL PROTECTED] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-ut > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
