On 12 Aug 13:14, Mark Rogers wrote:
On 12/08/10 12:29, Brett Parker wrote:
I'd be adding them when the interface is brought up (post-up), and I'd be changing the add to a delete in a pre-down script.
In Ubuntu I have if-pre-up.d, if-up.d, if-down.d, if-post-down.d
So I've used if-up.d and if-down.d, is that right?
That'd be about right :)
Next question: Can I modify my resolver settings from if-up? DHCP is only (capable of) giving me a single DNS search domain, and I need two. The Windows PCs have this given to them via group policies, but that's not much help to me (I assume!)
Actually, it can give more than one, space seperated... but that doesn't work for windows clients... ;)
I have only ever edited /etc/resolv.conf before but that gets overwritten by NetworkMangler.
If I remember correctly, network manager will play nicely with resolvconf, so install resolvconf, and do the magic in it's configuration instead.