QUOTE(Captain M @ 16 Jul, 2007 - 08:53 AM)

Sorry, I've been gone. I have no clue why I have to edit the file every time. I'm going to answer your questions in the order they were asked. no2pencil, resolv.conf does exist in /etc, I just have another one sitting in my home folder that copies over the one in /etc. If you notice, the last thing my code says is /etc, as that tells it where to copy to. You probably already knew this and just missed the last part of my code. And as for no2pencil's solution, would that not just make it so you never have to type a password to sudo? That's dangerous and something I don't want. I'm pretty sure somewhere in this ubuntu system ages ago I found list of programs that run on startup, and just added mine to it. I can't seem to find it now though. I don't really understand what you're saying about editing that other file, could you explain it more?
When your system boots, it runs a collection of scripts to get everything that is needed to run your computer, running. There is one specific script that you can add your own stuff to. So, you would create a small bash shell script like such:
CODE
#!/bin/bash
cp /root/resolv.conf /etc/resolv.conf
echo "resolv.conf copied..."
And save as /root/myResolv.sh or something like that.
chmod +x myResolv.sh to make it executable, and add
/root/myResolv.sh to local.start. (local.start is the Gentoo-version of the custom init scripts... I don't know where Ubuntu keeps theirs.
Although, if I recall correctly, and someone check me on this, you would actually name it something like "77-myResolv" and put it in /etc/rc.d/rc.3, still make it executable, and then it'll run on it's own.
Of course, in that script, you'll have to modify where that resolv.conf is. I'd recommend putting it in /root, just so if you screw something up as user, and your ~ gets blown away, you don't get screwed next time you boot.