I'm running a 3rd party vpn daemon that changes resolv.conf on init and checks for changes continuously.

I installed my own local dns cache that gets properly inside resolv.conf but the vpn daemon puts its resolvers before that and I'm getting huge timeouts.

Any idea on how could I use another config file to specify I want to resolve my own stuff or at least reducing the standard dns timeout(5 secs) without touching resolv.conf

link|improve this question

14% accept rate
feedback

1 Answer

I'd be invoking the awesome power of chattr +i /etc/resolv.conf to make the file immutable, or else hunting down the author of the VPN client and beating them around the head with a clue-by-four.

link|improve this answer
Tell it who's boss. You shouldn't need to adapt around it. – Dan Carley Oct 7 '09 at 11:25
Looks like a good one, but I do need it to modify it to add vpns own dns to work, just after my own local dns, not before. – Arkaitz Jimenez Oct 7 '09 at 11:34
Add the VPN's DNS servers yourself where you want them, then chattr it. – womble Oct 8 '09 at 9:41
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.